From b81e1fecff6614ff4b4f45d44cfa82f8ff4fe6b7 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 16 Nov 2016 11:03:16 +0100 Subject: [PATCH] mtk: generate PIE executables --- port/mtk/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/port/mtk/Makefile b/port/mtk/Makefile index 5f09e999d..6bd6c4fb4 100644 --- a/port/mtk/Makefile +++ b/port/mtk/Makefile @@ -5,8 +5,8 @@ TOOLCHAIN = /usr/local/android-ndk SYSROOT = $(TOOLCHAIN)/sysroot GCC = $(TOOLCHAIN)/bin/arm-linux-androideabi-gcc STRIP = $(TOOLCHAIN)/bin/arm-linux-androideabi-strip -CFLAGS = -march=armv7-a -mfloat-abi=softfp -I$(SYSROOT)/usr/include -LDFLAGS = -Wl,--fix-cortex-a8 -L$(SYSROOT)/usr/lib +CFLAGS = -march=armv7-a -mfloat-abi=softfp -I$(SYSROOT)/usr/include -fpie -fpic -fPIE -pie# +LDFLAGS = -Wl,--fix-cortex-a8 -L$(SYSROOT)/usr/lib -fpie -fpic -fPIE -pie BTSTACK_ROOT = ../..