summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-01-05 06:46:28 +0000
committerMike Frysinger <vapier@gentoo.org>2008-01-05 06:46:28 +0000
commit29c5e0adf13a96a0247e79d352168548c8c83fdf (patch)
treeaffb2c9428ea62f888f2984160cafbe24481672f
parent5ec141e00272315e7690c00f1a3731631d587fa3 (diff)
pop -m32 onto LDFLAGS/CFLAGS to make building on x86_64 multilib systems transparent
-rw-r--r--Rules.mak2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 9f70056f6..c14a907d7 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -168,6 +168,8 @@ PIEFLAG_NAME:=-fPIE
ifeq ($(TARGET_ARCH),i386)
OPTIMIZATION+=$(call check_gcc,-mpreferred-stack-boundary=2,)
OPTIMIZATION+=$(call check_gcc,-falign-jumps=0 -falign-loops=0,-malign-jumps=0 -malign-loops=0)
+ CPU_LDFLAGS-y+=-m32
+ CPU_CFLAGS-y+=-m32
CPU_CFLAGS-$(CONFIG_386)+=-march=i386
CPU_CFLAGS-$(CONFIG_486)+=-march=i486
CPU_CFLAGS-$(CONFIG_ELAN)+=-march=i486