summaryrefslogtreecommitdiffstats
path: root/debian/patches/29-fix-ftbfs-as-needed.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:49:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:49:11 +0000
commitf4f3a659b7663cf52c2f2e1fa8e58ed4000e29c9 (patch)
tree46477e488553a670f4b0346080d3f9a635672104 /debian/patches/29-fix-ftbfs-as-needed.patch
parentAdding upstream version 7.0.6-dfsg. (diff)
downloadvirtualbox-debian.tar.xz
virtualbox-debian.zip
Adding debian version 7.0.6-dfsg-1.debian/7.0.6-dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/29-fix-ftbfs-as-needed.patch')
-rw-r--r--debian/patches/29-fix-ftbfs-as-needed.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/29-fix-ftbfs-as-needed.patch b/debian/patches/29-fix-ftbfs-as-needed.patch
new file mode 100644
index 00000000..690a0ab9
--- /dev/null
+++ b/debian/patches/29-fix-ftbfs-as-needed.patch
@@ -0,0 +1,16 @@
+Description: Fix FTBFS with ld --as-needed.
+Origin: vendor, http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-emulation/virtualbox/files/virtualbox-4.1.4-asneeded.patch?revision=1.2&view=markup
+
+Index: virtualbox/Config.kmk
+===================================================================
+--- virtualbox.orig/Config.kmk 2015-04-02 15:46:59.611743003 +0200
++++ virtualbox/Config.kmk 2015-04-02 15:46:59.611743003 +0200
+@@ -6658,7 +6658,7 @@
+ TEMPLATE_VBoxBldProg_LDFLAGS.amd64 = -m64
+ TEMPLATE_VBoxBldProg_LDFLAGS.sparc64 = -m64
+ ifeq ($(KBUILD_HOST),linux)
+-TEMPLATE_VBoxBldProg_LIBS = pthread m rt dl
++TEMPLATE_VBoxBldProg_LIBS = pthread m rt dl crypt
+ else ifeq ($(KBUILD_HOST),os2)
+ TEMPLATE_VBoxBldProg_TOOL = GXX3OMF
+ TEMPLATE_VBoxBldProg_LIBS = socket iconv