From aaa50ddafc72b04f9ebff99a0067c180424bc978 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Wed, 20 Sep 2017 11:04:31 +0100 Subject: [PATCH] use -fPIC for both compiling and linking --- templates/simple/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/simple/Makefile b/templates/simple/Makefile index 5fd9ee4..7b03682 100644 --- a/templates/simple/Makefile +++ b/templates/simple/Makefile @@ -27,9 +27,9 @@ EXEFS_SRC := exefs_src #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- -ARCH := -march=armv8-a +ARCH := -march=armv8-a -fPIC -CFLAGS := -g -Wall -O2 -fPIC \ +CFLAGS := -g -Wall -O2 \ -ffast-math \ $(ARCH) $(DEFINES)