Skip to content

Commit fd88309

Browse files
authored
fix newer NDK version compiling errors (#5389)
target already gets assigned by the clang macro it points to, overwriting it causes it to target linux instead of android, making it check for usr directories instead of the NDK's directories
1 parent f9899a7 commit fd88309

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/Makefile.Android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ ifeq ($(ANDROID_ARCH),ARM)
130130
CFLAGS = -std=c99 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16
131131
endif
132132
ifeq ($(ANDROID_ARCH),ARM64)
133-
CFLAGS = -std=c99 -target aarch64 -mfix-cortex-a53-835769
133+
CFLAGS = -std=c99 -mfix-cortex-a53-835769
134134
endif
135135
# Compilation functions attributes options
136136
CFLAGS += -ffunction-sections -funwind-tables -fstack-protector-strong -fPIC

projects/4coder/Makefile.Android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ifeq ($(ANDROID_ARCH),ARM)
9696
CFLAGS = -std=c99 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16
9797
endif
9898
ifeq ($(ANDROID_ARCH),ARM64)
99-
CFLAGS = -std=c99 -target aarch64 -mfix-cortex-a53-835769
99+
CFLAGS = -std=c99 -mfix-cortex-a53-835769
100100
endif
101101
# Compilation functions attributes options
102102
CFLAGS += -ffunction-sections -funwind-tables -fstack-protector-strong -fPIC

projects/VSCode/Makefile.Android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ifeq ($(ANDROID_ARCH),ARM)
9696
CFLAGS = -std=c99 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16
9797
endif
9898
ifeq ($(ANDROID_ARCH),ARM64)
99-
CFLAGS = -std=c99 -target aarch64 -mfix-cortex-a53-835769
99+
CFLAGS = -std=c99 -mfix-cortex-a53-835769
100100
endif
101101
# Compilation functions attributes options
102102
CFLAGS += -ffunction-sections -funwind-tables -fstack-protector-strong -fPIC

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_ANDROID)
406406
CFLAGS += -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16
407407
endif
408408
ifeq ($(ANDROID_ARCH),arm64)
409-
CFLAGS += -target aarch64 -mfix-cortex-a53-835769
409+
CFLAGS += -mfix-cortex-a53-835769
410410
endif
411411
ifeq ($(ANDROID_ARCH),x86)
412412
CFLAGS += -march=i686

0 commit comments

Comments
 (0)