File vbox-xpcom-kmk.diff of Package virtualbox

--- VirtualBox-4.0.2_OSE.orig/src/libs/xpcom18a4/Makefile.kmk	2011-01-14 20:19:30.000000000 +0000
+++ VirtualBox-4.0.2_OSE/src/libs/xpcom18a4/Makefile.kmk	2011-02-05 18:09:05.797482000 +0000
@@ -471,9 +471,11 @@
  xpidl_CFLAGS = \
 	$(libIDL_config_cflags)
  xpidl_LDFLAGS = \
-	$(libIDL_config_libs)
+	$(filter-out -l%,$(libIDL_config_libs))
  xpidl_LDFLAGS.linux = \
 	$(VBOX_LD_as_needed)
+ xpidl_LIBS = \
+	$(patsubst -l%,%,$(filter -l%,$(libIDL_config_libs)))
 endif
 
 #