summarylogtreecommitdiffstats
path: root/gentoo-openl2tp-1.8-parallelbuild.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gentoo-openl2tp-1.8-parallelbuild.patch')
-rw-r--r--gentoo-openl2tp-1.8-parallelbuild.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/gentoo-openl2tp-1.8-parallelbuild.patch b/gentoo-openl2tp-1.8-parallelbuild.patch
new file mode 100644
index 000000000000..994a48505e96
--- /dev/null
+++ b/gentoo-openl2tp-1.8-parallelbuild.patch
@@ -0,0 +1,21 @@
+diff -rau openl2tp-1.8.o/Makefile openl2tp-1.8/Makefile
+--- openl2tp-1.8.o/Makefile 2011-06-03 18:21:09.000000000 +0200
++++ openl2tp-1.8/Makefile 2011-06-03 18:54:43.000000000 +0200
+@@ -197,7 +197,7 @@
+
+ .PHONY: $(SUBDIRS:%=subdir-%)
+
+-$(SUBDIRS:%=subdir-%): FORCE
++$(SUBDIRS:%=subdir-%): FORCE generated-files
+ $(MAKE) -C $(@:subdir-%=%) $(MFLAGS) EXTRA_CFLAGS="$(CPPFLAGS)"
+
+ ifeq ($(L2TP_FEATURE_LOCAL_CONF_FILE),y)
+@@ -271,7 +271,7 @@
+ l2tpconfig: $(L2TPCONFIG_SRCS.o)
+ $(CC) $(LDFLAGS) -o $@ $^ $(LDFLAGS.l2tpconfig)
+
+-%.o: %.c
++%.o: %.c generated-files
+ $(CC) -c $(CFLAGS) $< -o $@
+
+ l2tp_options.h: FORCE