diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-11 17:00:39 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-11 17:00:39 +0100 |
commit | 5de4c2949b50992dd7c5063835301e5ff18e66cb (patch) | |
tree | ba5ee2fa165c196305264d4cd9dae7f70a5a081a /package/iproute2/patches/patch-netem_Makefile | |
parent | 83270395db5c6e016076f0ea593594b057778e05 (diff) |
make iproute compilable on FreeBSD host
make an extra linux-headers dir in STAGING_DIR for special
cases, where host gcc is used, but kernel headers from Linux
are needed. Move GNU make specific export to GNUMakefile.
Diffstat (limited to 'package/iproute2/patches/patch-netem_Makefile')
-rw-r--r-- | package/iproute2/patches/patch-netem_Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/iproute2/patches/patch-netem_Makefile b/package/iproute2/patches/patch-netem_Makefile new file mode 100644 index 000000000..325d01925 --- /dev/null +++ b/package/iproute2/patches/patch-netem_Makefile @@ -0,0 +1,27 @@ +--- iproute2-2.6.29-1.orig/netem/Makefile 2009-03-24 23:40:54.000000000 +0100 ++++ iproute2-2.6.29-1/netem/Makefile 2009-12-11 16:39:15.000000000 +0100 +@@ -2,13 +2,13 @@ DISTGEN = maketable normal pareto pareto + DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist + + HOSTCC ?= $(CC) +-CCOPTS = $(CBUILD_CFLAGS) ++HOSTCFLAGS ?= + LDLIBS += -lm + + all: $(DISTGEN) $(DISTDATA) + + $(DISTGEN): +- $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm ++ $(HOSTCC) $(HOSTCFLAGS) -I../include -o $@ $@.c -lm + + %.dist: % + ./$* > $@ +@@ -17,7 +17,7 @@ experimental.dist: maketable experimenta + ./maketable experimental.dat > experimental.dist + + stats: stats.c +- $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm ++ $(HOSTCC) $(HOSTCFLAGS) -I../include -o $@ $@.c -lm + + install: all + mkdir -p $(DESTDIR)/lib/tc |