Building VirtualBox 3.1.0 fails when using the GNU binutils-gold linker.
The important difference is that --no-add-needed is the default behavior
of binutils-gold.
Debian bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556918
Attached is patch that fixes the linking errors.
--
Felix Geyer
diff -Nur virtualbox-ose-3.1.0-dfsg.orig/src/VBox/Additions/x11/VBoxClient/Makefile.kmk virtualbox-ose-3.1.0-dfsg/src/VBox/Additions/x11/VBoxClient/Makefile.kmk
--- virtualbox-ose-3.1.0-dfsg.orig/src/VBox/Additions/x11/VBoxClient/Makefile.kmk 2009-12-06 16:41:19.000000000 +0100
+++ virtualbox-ose-3.1.0-dfsg/src/VBox/Additions/x11/VBoxClient/Makefile.kmk 2009-12-06 16:41:37.635041401 +0100
@@ -47,6 +47,7 @@
$(VBOX_LIB_IPRT_GUEST_R3) \
$(VBOX_LIB_VBGL_R3) \
$(VBOX_LIB_IPRT_GUEST_R3) \
+ dl \
X11 \
Xt
# These are static replacements for gcc-specific parts of libstdc++
diff -Nur virtualbox-ose-3.1.0-dfsg.orig/src/VBox/Main/Makefile.kmk virtualbox-ose-3.1.0-dfsg/src/VBox/Main/Makefile.kmk
--- virtualbox-ose-3.1.0-dfsg.orig/src/VBox/Main/Makefile.kmk 2009-12-01 16:54:52.000000000 +0100
+++ virtualbox-ose-3.1.0-dfsg/src/VBox/Main/Makefile.kmk 2009-12-06 15:59:45.692134428 +0100
@@ -484,6 +484,8 @@
VBoxTestOGL_LDFLAGS.darwin += -framework OpenGL
VBoxTestOGL_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
VBoxTestOGL_LIBS.solaris += GL
+ VBoxTestOGL_LIBS.linux += GL
+ VBoxTestOGL_LIBS.freebsd += GL
endif
VBoxTestOGL_LDFLAGS.win = /SUBSYSTEM:windows
endif
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev