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

2005-05-04 Thread Adam
| 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
Kind regards,
Adam

___
Bug-libtool mailing list
Bug-libtool@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-libtool


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

2005-05-04 Thread Peter O'Gorman
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 - 1.334.2.68
+++ ltmain.in 4 May 2005 13:50:49 -
@@ -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
Bug-libtool@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-libtool


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

2005-05-04 Thread Adam Ciarcinski
| 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,
Well... errare humanum est. :)
Could you, please, send me a diff file, so I can patch libtool in pkgsrc 
(www.pkgsrc.org)?  It's very crucial to our package system, since many 
programs do not compile on Darwin/MacOSX.

Kind regards,
Adam
___
Bug-libtool mailing list
Bug-libtool@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-libtool