Fixed "relocation R_ARM_THM_MOVW_ABS_NC ... when making shared object" for non-X86 targets

pull/65/head
Jeffrey Walton 2015-12-25 05:01:57 -05:00
parent 885b94707c
commit 6e8d8c4ff9
1 changed files with 7 additions and 0 deletions

View File

@ -126,6 +126,13 @@ CXXFLAGS += -Wa,--divide # allow use of "/" operator
endif
endif
else # Not IS_X86
# Add PIC
ifeq ($(findstring -fPIC,$(CXXFLAGS)),)
CXXFLAGS += -fPIC
endif
endif # IS_X86
ifeq ($(UNAME),) # for DJGPP, where uname doesn't exist