OSDN Git Service

fPIC doesnt work on bfin
authorMike Frysinger <vapier@gentoo.org>
Thu, 5 Jan 2006 03:53:44 +0000 (03:53 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 5 Jan 2006 03:53:44 +0000 (03:53 -0000)
Rules.mak

index 86a8883..e9c5c53 100644 (file)
--- a/Rules.mak
+++ b/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