pass arm -march etc flags everywhere they should be
Change-Id: Ic52910ba2334cf82fb676f9c1a27a30467333a99
diff --git a/aos/build/aos.gypi b/aos/build/aos.gypi
index a061a66..046d59b 100644
--- a/aos/build/aos.gypi
+++ b/aos/build/aos.gypi
@@ -209,12 +209,6 @@
'-fno-strict-aliasing',
],
}],
- ['ARCHITECTURE=="arm"', {
- 'cflags': [
- '-mcpu=cortex-a8',
- '-mfpu=neon',
- ],
- }],
['ARCHITECTURE=="amd64"', {
'cflags': [
'-fstack-protector-all',
@@ -234,6 +228,16 @@
],
}
],
+ ['ARCHITECTURE=="arm"', {
+ 'cflags': [
+ '-mcpu=cortex-a8',
+ '-mfpu=neon',
+ ],
+ 'ldflags': [
+ '-mcpu=cortex-a8',
+ '-mfpu=neon',
+ ],
+ }],
['PLATFORM=="crio"', {
'target_conditions': [
['_type=="shared_library"', {