Browse Source

Add -Cg option for mips and mipsel cpu's on unix-like systems

git-svn-id: trunk@29384 -
pierre 10 years ago
parent
commit
491fb0dcce
1 changed files with 3 additions and 2 deletions
  1. 3 2
      utils/fpcm/fpcmake.ini

+ 3 - 2
utils/fpcm/fpcmake.ini

@@ -1403,9 +1403,10 @@ ifdef CREATESHARED
 override FPCOPT+=-Cg
 override FPCOPT+=-Cg
 endif
 endif
 
 
-# create always pic'ed code on x86_64
+# create always pic'ed code on x86_64, mips and mipsel
+# on unix-like systems
 ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
 ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
-ifeq ($(CPU_TARGET),x86_64)
+ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),)
 override FPCOPT+=-Cg
 override FPCOPT+=-Cg
 endif
 endif
 endif
 endif