libtool-patches
[Top][All Lists]
Advanced

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

Re: libtool 1.5.14 eats -framework option on Darwin/MacOSX


From: Peter O'Gorman
Subject: Re: libtool 1.5.14 eats -framework option on Darwin/MacOSX
Date: Wed, 04 May 2005 22:53:18 +0900
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

Adam wrote:
| Greetings,
|
| There is a problem when using libtool (1.5.14) on Darwin/MacOSX.
| Then compiling programs, the "-framework" options is not passed to the
| compiler.
| For example:
| /usr/pkg/bin/libtool --mode=link cc -framework CoreAudio -o x x.c
| Results in:
| cc -o x x.c
|
| Please, advice.

Use -Wl, or -Xlinker or libtool-1.5.16.

Peter
- --
Peter O'Gorman - http://www.pogma.com


Peter,

libtool-1.5.16 still has the same bug

Well aren't I stupid, I did not notice that you specified *program* and I tried linking a library and it got passed through happily enough.

I applied this patch to branch-1-5.

Peter
--
Peter O'Gorman - http://www.pogma.com
Index: ChangeLog
2005-05-04  Peter O'Gorman  <address@hidden>

        * ltmain.in [darwin]: Pass -framework for executables too.
        Reported by Adam <address@hidden>

from  Andreas Schwab  <address@hidden>
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.68
diff -u -3 -p -u -r1.334.2.68 ltmain.in
--- ltmain.in 22 Apr 2005 09:05:41 -0000 1.334.2.68
+++ ltmain.in 4 May 2005 13:50:49 -0000
@@ -1357,6 +1357,8 @@ EOF
          ;;
         darwin_framework)
          compiler_flags="$compiler_flags $arg"
+         compile_command="$compile_command $arg"
+         finalize_command="$finalize_command $arg"
          prev=
          continue
          ;;
@@ -1421,6 +1423,8 @@ EOF
       -framework)
         prev=darwin_framework
         compiler_flags="$compiler_flags $arg"
+       compile_command="$compile_command $arg"
+       finalize_command="$finalize_command $arg"
         continue
         ;;
 

reply via email to

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