Karim BELABAS on Tue, 4 Feb 2003 19:53:49 +0100 (MET)


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

Re: get_ld patch


On Tue, 4 Feb 2003, Igor Schein wrote:
> -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

It should not be needed [ cf config/Makefile.SH:162-166 ]. The current logic
is the we find out the linker flags, then depending on the compiler/linker
pair, we pass these flags directly or through -Wl [ if $LDisGCC is set ].

Which exact syndrom is this supposed to cure ?

    Karim.
-- 
Karim Belabas                    Tel: (+33) (0)1 69 15 57 48
Dép. de Mathématiques, Bât. 425  Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud             Email: Karim.Belabas@math.u-psud.fr
F-91405 Orsay (France)           http://www.math.u-psud.fr/~belabas/
--
PARI/GP Home Page: http://www.parigp-home.de/