summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-25 06:30:36 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-25 06:30:36 +0000
commit1b9d91c491debe4a40a10f87b87241747e9ad40e (patch)
tree0dd9dbfb32b0c8a5ec66611105113c17e536bde9
parentd3f44b49b3c0a1870ad842918fcbf49d1a37fbca (diff)
make hotplug2 use the build system cflags
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7720 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/hotplug2/Makefile1
-rw-r--r--package/hotplug2/patches/110-depend_fix.patch13
2 files changed, 14 insertions, 0 deletions
diff --git a/package/hotplug2/Makefile b/package/hotplug2/Makefile
index 6b69bac73..bf7c8c6b0 100644
--- a/package/hotplug2/Makefile
+++ b/package/hotplug2/Makefile
@@ -29,6 +29,7 @@ define Package/hotplug2/description
Hotplug2 is a trivial replacement of some of the UDev functionality
in a tiny pack, intended for Linux early userspace: Init RAM FS and InitRD.
endef
+MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS)"
define Package/hotplug2/install
$(INSTALL_DIR) $(1)/etc
diff --git a/package/hotplug2/patches/110-depend_fix.patch b/package/hotplug2/patches/110-depend_fix.patch
new file mode 100644
index 000000000..762b26fa1
--- /dev/null
+++ b/package/hotplug2/patches/110-depend_fix.patch
@@ -0,0 +1,13 @@
+Index: hotplug2-0.9/common.mak
+===================================================================
+--- hotplug2-0.9.orig/common.mak 2007-06-25 08:08:59.320226312 +0200
++++ hotplug2-0.9/common.mak 2007-06-25 08:09:03.541584568 +0200
+@@ -10,7 +10,7 @@
+ .PHONY: all clean dep install install-recursive clean-recursive \
+ dep-recursive all-recursive
+
+-MAKEDEP=-gcc $(CFLAGS) -MM $(wildcard *.c *.cc) > .depend
++MAKEDEP=-$(CC) $(CFLAGS) -MM $(wildcard *.c *.cc) > .depend
+ dep: dep-recursive
+ $(MAKEDEP)
+ .depend: