build, fix cyclone build (replace CFLAGS in environment)
authorkub <derkub@gmail.com>
Sun, 20 Feb 2022 22:38:12 +0000 (22:38 +0000)
committerkub <derkub@gmail.com>
Sun, 20 Feb 2022 22:38:12 +0000 (22:38 +0000)
platform/common/common.mak

index 0aabeab..183a715 100644 (file)
@@ -200,7 +200,8 @@ $(FR)cpu/cyclone/Cyclone.h:
 
 $(FR)cpu/cyclone/Cyclone.s: $(FR)cpu/$(CYCLONE_CONFIG)
        @echo building Cyclone...
-       @make CC=$(CYCLONE_CC) CXX=$(CYCLONE_CXX) -C $(R)cpu/cyclone/ CONFIG_FILE=../$(CYCLONE_CONFIG) HAVE_ARMv6=$(HAVE_ARMv6)
+       @export CC=$(CYCLONE_CC) CXX=$(CYCLONE_CXX) CFLAGS=-O2; \
+        make -C $(R)cpu/cyclone/ CONFIG_FILE=../$(CYCLONE_CONFIG) HAVE_ARMv6=$(HAVE_ARMv6)
 
 $(FR)cpu/cyclone/Cyclone.s: $(FR)cpu/cyclone/*.cpp $(FR)cpu/cyclone/*.h