1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 22-no-static-libstdcpp.dpatch by Lubomir Rintel <lkundrak@v3.sk>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Do not include statically linked libstdc++. Not a good idea if we don't need
6
## DP: to be binary-compatible across exotic distribution. Doesn't work with trunk
7
## DP: glibc heading towards 2.11 anyways. Static linking is not really supported
11
diff -urNad virtualbox-ose-3.0.8-dfsg~/src/VBox/Additions/x11/VBoxClient/Makefile.kmk virtualbox-ose-3.0.8-dfsg/src/VBox/Additions/x11/VBoxClient/Makefile.kmk
12
--- virtualbox-ose-3.0.8-dfsg~/src/VBox/Additions/x11/VBoxClient/Makefile.kmk 2009-10-07 11:27:13.000000000 +0200
13
+++ virtualbox-ose-3.0.8-dfsg/src/VBox/Additions/x11/VBoxClient/Makefile.kmk 2009-10-07 18:44:29.962989537 +0200
19
-# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
20
-# (It would've been preferred to avoid features depending on libstdc++, of course...)
22
-# Actually, this is darn annoying and will *NOT* be tolerated for any new code!
24
-VBoxClient_LIBPATH += $(PATH_VBoxClient)
25
-VBoxClient_ORDERDEPS = $(PATH_VBoxClient)/libstdc++.a
26
-VBoxClient_CLEAN = $(PATH_VBoxClient)/libstdc++.a
27
-$$(PATH_VBoxClient)/libstdc++.a:
28
- $(call MSG_L1,Forcing static libstdc++)
29
- $(QUIET)$(MKDIR) -p $(@D)
30
- $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@ \
31
- || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@
33
ifdef VBOX_X11_SEAMLESS_GUEST
34
if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)