mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 04:39:38 +02:00
Use "-K PIC" for assembler call if pic mode is selected
git-svn-id: trunk@22479 -
This commit is contained in:
parent
141b1340fb
commit
543cf7e78b
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user