Remove absolute path from libust.so
authorPedro Alves <pedro@codesourcery.com>
Thu, 7 Jan 2010 03:28:21 +0000 (22:28 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Thu, 7 Jan 2010 03:28:21 +0000 (22:28 -0500)
I noticed that the libust.so ld script is installed to the same directory as
libust.so.0 and libust-initializer.o, so removing the absolute paths from them
allows linking with a libust.so that isn't in the sysroot or installed under
/usr/, like e.g., in a DESTDIR directory.  This was useful for testing a
release with everything extracted some randome prefix, e.g., libust.so in
$RANDOM_UNPACK_DIR/usr/lib, and pointing LD_LIBRARY_PATH to
$RANDOM_UNPACK_DIR/usr/lib.

Makefile.am
libust.ldscript.in

index 93851161a9bb1464c08e224355a76a11dff2d629..3f23249060edd5b64c583817c9de238a6775f9da 100644 (file)
@@ -16,7 +16,7 @@ ldscripts_DATA = libust.so libust-initializer.o
 CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po
 
 libust.so: libust.ldscript.in
-       $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" -e "s@\@PATH\@@${libdir}@g" < $< > $@
+       $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@
 
 # It is very important to compile the initializer with PIC otherwise we
 # may get obscure errors when linking to shared libraries.
index 3babac687d75189369612af17486245af00cfa2a..d3f9fe84a9cc369fdb2bcb1d54d111bfbfac4e04 100644 (file)
@@ -1,4 +1,4 @@
 /* GNU ld script
    Use the shared library, but the link with initializer too */
 OUTPUT_FORMAT(@FORMAT@)
-GROUP ( @PATH@/libust.so.0 @PATH@/libust-initializer.o )
+GROUP ( libust.so.0 libust-initializer.o )
This page took 0.024742 seconds and 4 git commands to generate.