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 <vapier@gentoo.org>
diff --git a/netem/Makefile b/netem/Makefile
index 3732160..2d7d68b 100644
--- a/netem/Makefile
+++ b/netem/Makefile
@@ -2,6 +2,7 @@
DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
HOSTCC ?= $(CC)
+CCOPTS = $(CBUILD_CFLAGS)
LDLIBS += -lm
all: $(DISTGEN) $(DISTDATA)