summaryrefslogtreecommitdiff
path: root/app-emulation/virtualbox/files/virtualbox-ose-asneeded.patch
blob: 2eee12598042b9f43b5f501f7ba53ba0d0b4c3c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- src/libs/xpcom18a4/Makefile.kmk
+++ src/libs/xpcom18a4/Makefile.kmk
@@ -469,9 +469,10 @@
  libIDL_config_cflags := $(shell $(VBOX_LIBIDL_CONFIG) --cflags)
  libIDL_config_libs   := $(shell $(VBOX_LIBIDL_CONFIG) --libs)
  xpidl_CFLAGS = \
-	$(libIDL_config_cflags)
- xpidl_LDFLAGS = \
-	$(libIDL_config_libs)
+	$(shell pkg-config --cflags libIDL-2.0)
+ xpidl_LDFLAGS = $(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')
+
 endif
 
 #