]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/ccache
Don't compile first pass of toolchain with -march=...
[ipfire-2.x.git] / lfs / ccache
index 22b8c5e0b39d50c6d84cb13c291ff1c3176250fe..454032d0e1ee902127799b767b6d93cc29f643ab 100644 (file)
@@ -33,7 +33,7 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)-pass$(PASS)
 
 ifeq "$(PASS)" "1"
-       CFLAGS += -static
+       CFLAGS := $(patsubst -march=%,,$(CFLAGS)) -static
 endif
 
 # Set max cache size to 5GB