summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak7
1 files changed, 7 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 947f006f7..6f92e6f3a 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -250,6 +250,13 @@ ifeq ($(TARGET_ARCH),cris)
PIEFLAG_NAME:=-fpie
endif
+ifeq ($(TARGET_ARCH),m68k)
+ # -fPIC is only supported for 68020 and above. It is not supported
+ # for 68000, 68010, or Coldfire.
+ PICFLAG:=-fpic
+ PIEFLAG_NAME:=-fpie
+endif
+
ifeq ($(TARGET_ARCH),powerpc)
# PowerPC can hold 8192 entries in its GOT with -fpic which is more than
# enough. Therefore use -fpic which will reduce code size and generates