tech-pkg archive

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

--as-needed ld option



When compiling sysutils/eggdbus on MacOS 10.6.4 I end up like this:

libtool: link: gcc -D_EGG_DBUS_COMPILATION -D_REENTRANT 
-I/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/include/glib/glib-2.0 
-I/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/glib-2.0/include 
-I/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/include/dbus-1.0 
-I/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/dbus-1.0/include 
-pipe -O3 -mtune=native 
-I/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/include -Wall 
-Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith 
-Wcast-align -Wsign-compare -Wformat -Wformat-security -Wl,--as-needed -o 
eggdbus-binding-tool eggdbus_binding_tool-eggdbusbindingtool.o 
eggdbus_binding_tool-interface.o eggdbus_binding_tool-struct.o 
eggdbus_binding_tool-enum.o eggdbus_binding_tool-docbook.o 
eggdbus_binding_tool-completetype.o  
-L/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib 
/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/libgio-2.0.dylib 
-lresolv -lz 
/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/libgmodule-2.0.dylib 
/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/libdbus-glib-1.dylib 
/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/libdbus-1.dylib 
-lpthread 
/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/libgobject-2.0.dylib 
/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/libgthread-2.0.dylib 
/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/libglib-2.0.dylib 
/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/libpcre.dylib 
/Users/schwarz/pkgsrc/sysutils/eggdbus/work/.buildlink/lib/libintl.dylib 
-liconv -lc ./.libs/libeggdbus-common.a -framework Carbon
ld: unknown option: --as-needed
collect2: ld returned 1 exit status
gnumake[3]: *** [eggdbus-binding-tool] Error 1
gnumake[2]: *** [all-recursive] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2

I found this web page about --as-needed:

http://www.gentoo.org/proj/en/qa/asneeded.xml

When I manually eliminated the respective line in configure.ac this worked fine.
Is this an issue on systems (using gcc) other than MacOS X, too?

What would be the appropriate solution? To patch some extra condition into 
configure.ac? To have buildlink eliminate that option?


-- 
Georg Schwarz  http://home.pages.de/~schwarz/
georg.schwarz%freenet.de@localhost +49 170 8768585







Home | Main Index | Thread Index | Old Index