Skip to content

Commit 9d21cac

Browse files
committed
gcc 4.6 must use -std=gnu99 not -std=c99 to compile correctly on raspberry
1 parent c408632 commit 9d21cac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

jsrc/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
1919
LOCAL_LDFLAGS += -fopenmp -static-openmp
2020
endif
2121
ifeq ($(TARGET_ARCH_ABI),armeabi)
22-
LOCAL_CFLAGS := -std=c99 -Wno-unknown-warning-option -fPIC -Os -fvisibility=hidden -fwrapv -Werror -Wno-overflow -Wno-string-plus-int -Wno-empty-body -Wno-int-to-pointer-cast -Wno-parentheses -Wno-pointer-sign -Wno-pointer-to-int-cast -Wno-logical-op-parentheses -Wno-unused-value -Wno-null-dereference -Wno-type-limits -fno-strict-aliasing -mfloat-abi=softfp -march=armv5te -Wno-sign-compare
22+
LOCAL_CFLAGS := -std=gnu99 -Wno-unknown-warning-option -fPIC -Os -fvisibility=hidden -fwrapv -Werror -Wno-overflow -Wno-string-plus-int -Wno-empty-body -Wno-int-to-pointer-cast -Wno-parentheses -Wno-pointer-sign -Wno-pointer-to-int-cast -Wno-logical-op-parentheses -Wno-unused-value -Wno-null-dereference -Wno-type-limits -fno-strict-aliasing -mfloat-abi=softfp -march=armv5te -Wno-sign-compare
2323
LOCAL_ARM_MODE := arm
2424
LOCAL_CFLAGS += -fopenmp
2525
LOCAL_LDFLAGS += -fopenmp

make2/build_libj.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ FLAGS_BASE64=" -DHAVE_AVX2=1 " #ditto
368368

369369
raspberry_j32) # linux raspbian arm
370370
TARGET=libj.so
371-
CFLAGS="$common -Wno-overflow -marm -march=armv6 -mfloat-abi=hard -mfpu=vfp -DRASPI "
371+
CFLAGS="$common -std=gnu99 -Wno-overflow -marm -march=armv6 -mfloat-abi=hard -mfpu=vfp -DRASPI "
372372
LDFLAGS=" -shared -Wl,-soname,libj.so -lm -ldl $LDOPENMP $LDTHREAD"
373373
SRC_ASM="${SRC_ASM_RASPI32}"
374374
GASM_FLAGS=""

0 commit comments

Comments
 (0)