]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
netem: fix cross-compiling failure
authorBertrand Jacquin <beber@meleeweb.net>
Sat, 21 Jun 2008 05:51:19 +0000 (01:51 -0400)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 23 Jun 2008 16:17:48 +0000 (09:17 -0700)
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 <vapier@gentoo.org>
netem/Makefile

index 3732160d9a722a89c928e9a08eb10a1bf775bc6b..2d7d68bb150be7704033995a7746a29df2582e97 100644 (file)
@@ -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)