summaryrefslogtreecommitdiffstats
path: root/debian/patches/29-fix-ftbfs-as-needed.patch
blob: 690a0ab908f30486a4a0af7a74216b575e1f92e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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