bug-libtool
[Top][All Lists]
Advanced

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

Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem


From: Ralf Wildenhues
Subject: Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem
Date: Wed, 13 Sep 2006 16:49:02 +0200
User-agent: Mutt/1.5.13 (2006-09-01)

* Peter O'Gorman wrote on Wed, Sep 13, 2006 at 04:41:56PM CEST:
>
> As far as I'm aware there is not going to be a fix for this in gcc,  
> so yes, we need to fix it.
> Perhaps something like:
> 
> echo "int main(){return 0;}" > conftest.c
> search_path=`$CC $CFLAGS -c conftest.c 2>&1 | awk 'BEGIN {RS=" "} /^ 
> [\"]?-L/ {sub ("-L","");print $0};'`
> rm -f conftest.c conftest.o

Only as a last resort, if you ask me.  Other compilers love to
disguise as gcc, and Autoconf's AC_FC_LIBRARY_LDFLAGS is witness of
how helplessly maintenance-intensive an approach like the above is.

Cheers,
Ralf




reply via email to

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