diff options
author | Erik Schnetter <schnetter@gmail.com> | 2016-01-17 10:46:21 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2016-02-13 14:54:18 -0500 |
commit | 2cd9ad8ce63ea29093fcc2d8e1bd749d5cbccf0b (patch) | |
tree | 00d02eff8b5a65d28cd41db955d4454303d560c2 /lib/spack/docs/packaging_guide.rst | |
parent | 63911d416557c2c686d357c001d6ad3feebc5a8f (diff) | |
download | spack-2cd9ad8ce63ea29093fcc2d8e1bd749d5cbccf0b.tar.gz spack-2cd9ad8ce63ea29093fcc2d8e1bd749d5cbccf0b.tar.bz2 spack-2cd9ad8ce63ea29093fcc2d8e1bd749d5cbccf0b.tar.xz spack-2cd9ad8ce63ea29093fcc2d8e1bd749d5cbccf0b.zip |
Use "-Wl,-rpath," instead of "-Wl,-rpath="
The former translates to a linker argument "-rpath DIR", whereas the latter translates to "-rpath=DIR". The latter is not support on OS X.
Diffstat (limited to 'lib/spack/docs/packaging_guide.rst')
-rw-r--r-- | lib/spack/docs/packaging_guide.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst index 59ba63fa35..bb8a26ad02 100644 --- a/lib/spack/docs/packaging_guide.rst +++ b/lib/spack/docs/packaging_guide.rst @@ -1711,15 +1711,15 @@ Compile-time library search paths * ``-L$dep_prefix/lib`` * ``-L$dep_prefix/lib64`` Runtime library search paths (RPATHs) - * ``-Wl,-rpath=$dep_prefix/lib`` - * ``-Wl,-rpath=$dep_prefix/lib64`` + * ``-Wl,-rpath,$dep_prefix/lib`` + * ``-Wl,-rpath,$dep_prefix/lib64`` Include search paths * ``-I$dep_prefix/include`` An example of this would be the ``libdwarf`` build, which has one dependency: ``libelf``. Every call to ``cc`` in the ``libdwarf`` build will have ``-I$LIBELF_PREFIX/include``, -``-L$LIBELF_PREFIX/lib``, and ``-Wl,-rpath=$LIBELF_PREFIX/lib`` +``-L$LIBELF_PREFIX/lib``, and ``-Wl,-rpath,$LIBELF_PREFIX/lib`` inserted on the command line. This is done transparently to the project's build system, which will just think it's using a system where ``libelf`` is readily available. Because of this, you **do |