prevented CFLAGS from gettings written twice to .buildvars
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 15 Dec 2001 02:37:06 +0000 (02:37 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 15 Dec 2001 02:37:06 +0000 (02:37 +0000)
scripts/linux_flags/Makefile

index c535794a8802219c0bb636263c1111a3ae9bfa02..be6d6284181f0bb6fc50218bfa80a05d209e8d3d 100644 (file)
@@ -7,7 +7,6 @@ all:
 modules:
        echo LINUXDIR=$(LINUXDIR) >flags
        echo ARCH=$(ARCH) >>flags
-       echo CFLAGS="$(CFLAGS)" >>flags
        echo AFLAGS="$(AFLAGS)" >>flags
        echo LDFLAGS="$(LDFLAGS)" >>flags
        echo ARFLAGS="$(ARFLAGS)" >>flags
@@ -18,6 +17,7 @@ ifneq (,$(findstring __KERNEL__,$(CC)))
        echo CFLAGS="$(wordlist 2,100,$(CC)) $(CFLAGS)" >>flags
        echo CC=$(word 1,$(CC)) >>flags
 else
+       echo CFLAGS="$(CFLAGS)" >>flags
        echo CC="$(CC)" >>flags
 endif
        echo LD="$(LD)" >>flags