bug-autoconf
[Top][All Lists]
Advanced

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

-rpath option is not detected in AC_FC_LIBRARY_LDFLAGS (fortran.m4)


From: Pierre-François Giraud
Subject: -rpath option is not detected in AC_FC_LIBRARY_LDFLAGS (fortran.m4)
Date: Fri, 04 Mar 2005 16:43:46 +0100

Hello,

When running AC_FC_LIBRARY_LDFLAGS with pgf90, the analyzed ld command
was (from config.log):

/usr/bin/ld /usr/lib/crt1.o /usr/lib/crti.o 
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/crtbegin.o 
/afs/cern.ch/sw/fortran/pgi/pgi52/linux86/5.2/lib/f90main.o -m elf_i386 
-dynamic-linker /lib/ld-linux.so.2 /tmp/giraudpf/pgf90caaaabseaf.o -o conftest 
-L/afs/cern.ch/sw/fortran/pgi/pgi52/linux86/5.2/lib -L/usr/lib 
-L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 
-L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -rpath 
/afs/cern.ch/sw/fortran/pgi/pgi52/linux86/5.2/lib -lpgf90 -lpgf90_rpm1 -lpgf902 
-lpgf90rtl -lpgftnrtl -lg2c -lc -lnspgc -lpgc -lm -lgcc -lc -lgcc 
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/crtend.o /usr/lib/crtn.o

However the -rpath option is rejected by _AC_FC_LIBRARY_LDFLAGS: only -R
option is recognized. And this option is needed in the link. I recovered
from the problem by adding the following line to _AC_FC_LIBRARY_LDFLAGS:

ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output |
sed 's/-rpath/-R/'`

Version info:
> autoconf --version
autoconf (GNU Autoconf) 2.59

Pierre-François Giraud






reply via email to

[Prev in Thread] Current Thread [Next in Thread]