summaryrefslogtreecommitdiff
path: root/app-emulation/virtualbox/files/virtualbox-4-asneeded.patch
blob: 5533bb000687ffdafdf3f9525c88782c8a6c5232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- VirtualBox-4.0.0_OSE/src/libs/xpcom18a4/Makefile.kmk
+++ VirtualBox-4.0.0_OSE/src/libs/xpcom18a4/Makefile.kmk
@@ -469,9 +469,11 @@
  libIDL_config_cflags := $(shell $(VBOX_LIBIDL_CONFIG) --cflags)
  libIDL_config_libs   := $(shell $(VBOX_LIBIDL_CONFIG) --libs)
  xpidl_CFLAGS = \
-	$(libIDL_config_cflags)
+	$(shell pkg-config --cflags libIDL-2.0)
  xpidl_LDFLAGS = \
-	$(libIDL_config_libs)
+	$(shell pkg-config --libs-only-L libIDL-2.0)
+xpidl_LIBS.linux = \
+	$(shell pkg-config --libs-only-l libIDL-2.0 | sed -e 's/-l//g')
  xpidl_LDFLAGS.linux = \
 	$(VBOX_LD_as_needed)
 endif
--- VirtualBox-4.0.0_OSE/Config.kmk
+++ VirtualBox-4.0.0_OSE/Config.kmk
@@ -4053,7 +4053,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