Igor Schein on Tue, 4 Feb 2003 12:16:54 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

get_ld patch


Hi,

-rpath is a linker switch, not a compiler switch, so the following is
needed ( at least for gcc ): 

Index: config/get_ld
===================================================================
RCS file: /home/megrez/cvsroot/pari/config/get_ld,v
retrieving revision 1.5
diff -u -r1.5 get_ld
--- config/get_ld       2003/01/20 20:36:03     1.5
+++ config/get_ld       2003/02/04 17:12:33
@@ -53,6 +53,6 @@
 echo "Executable linker is   $LD  $LDFLAGS"

 case "$osname" in
-  osf1|linux|cygwin*|freebsd) runpathprefix='-rpath' ;;
+  osf1|linux|cygwin*|freebsd) runpathprefix='-Wl,-rpath' ;;
   solaris) runpathprefix='-R' ;;
 esac