Make sure that -fPIC is present if needed

This commit is contained in:
Martin Kroeker 2018-12-23 23:47:37 +01:00 committed by GitHub
parent 5bd21ab6e1
commit d6818777d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,12 @@ TOPDIR = ..
include ../Makefile.system
ifdef NEED_PIC
ifeq (,$(findstring PIC,$(CFLAGS)))
CFLAGS+= -fPIC
endif
endif
ifndef EXPRECISION
EXPRECISION = 0
endif