DORMANTno replies

[PATCH] netem: fix cross-compiling failure

From: Mike Frysinger <hidden>
Date: 2008-06-21 05:51:21
Subsystem: the rest · Maintainer: Linus Torvalds

From: Bertrand Jacquin <redacted>

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 <redacted>
---
 netem/Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/netem/Makefile b/netem/Makefile
index 3732160..2d7d68b 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)
-- 
1.5.5.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help