Use "-K PIC" for assembler call if pic mode is selected

git-svn-id: trunk@22479 -
This commit is contained in:
pierre 2012-09-27 15:47:31 +00:00
parent 141b1340fb
commit 543cf7e78b

View File

@ -134,6 +134,15 @@ ifeq ($(ARCH),mipsel)
ASTARGET=-EL
endif
ifeq ($(ARCH),sparc)
ifneq ($(findstring -Cg ,$(COMPILER)),)
ASTARGET+=-K PIC --defsym PIC=1
endif
ifneq ($(findstring -fPIC ,$(COMPILER)),)
ASTARGET+=-K PIC --defsym PIC=1
endif
endif
#
# Loaders
#