libtool
[Top][All Lists]
Advanced

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

Re: -F parameter appears not to be passed in OS X


From: Matthew Landauer
Subject: Re: -F parameter appears not to be passed in OS X
Date: Tue, 02 Aug 2005 16:03:32 +0930
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050716)

Thanks for that! That's a really good workaround. I'm productive again! :-)

Maybe I'm misunderstanding things but shouldn't libtool understand "-F"? It knows how to interpret -framework and -F goes with that as much as -L goes along with -l for normal linking.

Matthew

On Tue, 2 Aug 2005, Matthew Landauer wrote:

Using libtool 1.5.18 on OS X 10.4:

% libtool --mode=link g++ -module -o foo.la -rpath /usr/local/lib -F/foo -framework frame

Runs:

g++ ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/foo.0.0.0.so -bundle -framework frame

But would expect it to be something like:

g++ ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/foo.0.0.0.so -bundle -F/foo -framework frame


Try using

  -Wc,-F/foo -Wl,-F/foo

rather than just

 -F/foo

Libtool needs to parse the command line, and it only knows about common compiler/linker command options. The -Wc/-Wl approach allows the user to be explicit about the options which should be passed to the compiler or linker.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



--
Dr. Matthew Landauer
Visual Appliance Limited www.visualappliance.com
+61 (0)8 8223 1268






reply via email to

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