[patch] Prefix mangling
Jules Bergmann
jules at codesourcery.com
Thu Jan 19 23:39:14 UTC 2006
This patch adds:
* set-prefix.sh script to adjust the prefixes in the pkg-config .pc
files after a binary package has been installed on a user machine.
For example, suppose you untar the package in your home directory:
cd $HOME
tar xfj sourceryvsipl++-....tar.bz2
$HOME/usr/local/sbin/set-prefix.sh
export PKG_CONFIG_PATH=$HOME/usr/local/lib/pkgconfig
and you're in business.
The set-prefix.sh gets installed in usr/local/sbin of the tarball.
Is there a better place? I was tempted to put it in the same
directory as the .pc files.
* fix-intel-pkg-config.sh script to post-process the .pc files so that
references to IPP and MKL library paths are done through variables.
Two new variables are added (ipp_prefix and mkl_prefix). References
to the hard-coded paths are replaced with references through the
variables. This post processing is done at the end of configure,
after vsipl++.pc has been generated.
This allows (a) the paths to IPP and MKL to be more easily
overridden, for example
pkg-config --define-variable=ipp_prefix=/new/prefix/to/ipp
(b) the set-prefix.sh script to adjust the prefixes after
package installation.
For example, continuing the example above, suppose your IPP
library is also installed in your home directory ($HOME/ipp).
By passing an '-i' option to set-prefix.sh:
$HOME/usr/local/sbin/set-prefix.sh -i $HOME/ipp
The .pc files will be updated accordingly.
* Documentation for using set-prefix.sh in the quickstart.
* Stand-alone makefiles for building the tests and benchmarks
using pkg-config.
-- Jules
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pref.diff
Type: text/x-patch
Size: 25429 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20060119/735222ba/attachment.bin>
More information about the vsipl++
mailing list