use -fPIC for both compiling and linking

This commit is contained in:
Dave Murphy 2017-09-20 11:04:31 +01:00
parent 03e3d1ea7f
commit aaa50ddafc

View File

@ -27,9 +27,9 @@ EXEFS_SRC := exefs_src
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# options for code generation # options for code generation
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
ARCH := -march=armv8-a ARCH := -march=armv8-a -fPIC
CFLAGS := -g -Wall -O2 -fPIC \ CFLAGS := -g -Wall -O2 \
-ffast-math \ -ffast-math \
$(ARCH) $(DEFINES) $(ARCH) $(DEFINES)