]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - lfs/gcc
Don't compile first pass of toolchain with -march=...
[people/teissler/ipfire-2.x.git] / lfs / gcc
diff --git a/lfs/gcc b/lfs/gcc
index 82e0d915d0c1ed3ee9c8ffefa9b3adacbc05a64c..c8bcb08f27a4cda89eabe4a5c7ff835e857c1f60 100644 (file)
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -52,6 +52,7 @@ ifeq "$(ROOT)" ""
   EXTRA_INSTALL =
 else
 ifeq "$(PASS)" "1"
+  CFLAGS := $(patsubst -march=%,,$(CFLAGS))
   TARGET = $(DIR_INFO)/$(THISAPP)-tools1
   EXTRA_CONFIG = \
        --target=$(CROSSTARGET) \