[PATCH] pcmciautils: improve for cross-builds
Wolfram Sang
w.sang at pengutronix.de
Thu Dec 24 03:17:32 EST 2009
- don't overwrite CFLAGS, just append
- use CPPFLAGS
Those were needed to compile the package with PTXdist and is most probably
needed for other build-systems as well.
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
---
Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 11d0382..f4acfb3 100644
--- a/Makefile
+++ b/Makefile
@@ -126,7 +126,7 @@ WARNINGS += $(call cc-supports,-Wno-pointer-sign)
WARNINGS += $(call cc-supports,-Wdeclaration-after-statement)
WARNINGS += -Wshadow
-CFLAGS := -pipe -DPCMCIAUTILS_VERSION=\"$(VERSION)\"
+CFLAGS += -pipe -DPCMCIAUTILS_VERSION=\"$(VERSION)\"
YFLAGS := -d
HEADERS = \
@@ -218,7 +218,7 @@ build/ccdv: build/ccdv.c
@$(HOSTCC) -O1 $< -o $@
%.o : %.c ccdv
- $(QUIET) $(CC) $(CFLAGS) -c -o $@ $<
+ $(QUIET) $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
%.c %.h : %.y
$(YACC) $(YFLAGS) $<
--
1.6.3.3
More information about the linux-pcmcia
mailing list