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  <[EMAIL PROTECTED]>

        * ltmain.in [darwin]: Pass -framework for executables too.
        Reported by Adam <[EMAIL PROTECTED]>

from  Andreas Schwab  <[EMAIL PROTECTED]>
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
         ;;
 
_______________________________________________
Bug-libtool mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-libtool

Reply via email to