Browse Source

fPIC doesnt work on bfin

Mike Frysinger 19 years ago
parent
commit
2e17eb3d4a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Rules.mak

+ 6 - 0
Rules.mak

@@ -230,6 +230,12 @@ ifeq ($(TARGET_ARCH),powerpc)
 	PIEFLAG_NAME:=-fpie
 endif
 
+ifeq ($(TARGET_ARCH),bfin)
+	# This should also work, but why bother ? ;)
+	#PICFLAG:=-fPIC -mid-shared-library
+	PICFLAG:=-fpic
+endif
+
 ifeq ($(TARGET_ARCH),frv)
 	CPU_LDFLAGS-$(CONFIG_FRV)+=-melf32frvfd
 	CPU_CFLAGS-$(CONFIG_FRV)+=-mfdpic