From: Bertrand Jacquin Date: Sat, 21 Jun 2008 05:51:19 +0000 (-0400) Subject: netem: fix cross-compiling failure X-Git-Tag: v2.6.26~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cc6232e08e7c914fb9b9032f0f2957f7e015cf6;p=thirdparty%2Fiproute2.git netem: fix cross-compiling failure The programs in netem are compiled and run on the build machine, but they use the CFLAGS that are meant for the target system and often times, these are incompatible. Signed-off-by: Mike Frysinger --- diff --git a/netem/Makefile b/netem/Makefile index 3732160d9..2d7d68bb1 100644 --- a/netem/Makefile +++ b/netem/Makefile @@ -2,6 +2,7 @@ DISTGEN = maketable normal pareto paretonormal DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist HOSTCC ?= $(CC) +CCOPTS = $(CBUILD_CFLAGS) LDLIBS += -lm all: $(DISTGEN) $(DISTDATA)