瀏覽代碼

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

git-svn-id: trunk@22479 -
pierre 13 年之前
父節點
當前提交
543cf7e78b
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      rtl/linux/Makefile.fpc

+ 9 - 0
rtl/linux/Makefile.fpc

@@ -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
 #