From 05ff032f69c9431917f8d05e44980cf138e07951 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sat, 23 Oct 2010 20:38:42 -0600 Subject: [PATCH] pass -march=i586 to gcc when targetting 32-bit x86 Recent versions of GCC will only give us __sync_bool_compare_and_swap_8 if we target i586 and above, apparently. --- makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/makefile b/makefile index c66c09493c..0109e672a6 100644 --- a/makefile +++ b/makefile @@ -57,11 +57,6 @@ java-home = /tmp ifdef openjdk classpath = openjdk options := $(options)-openjdk - ifeq ($(arch),x86_64) - openjdk-lib-dir = $(openjdk)/jre/lib/amd64 - else - openjdk-lib-dir = $(openjdk)/jre/lib - endif java-home = $(openjdk)/jre test-executable = $(executable-dynamic) boot-classpath := $(boot-classpath):$(openjdk)/jre/lib/rt.jar @@ -252,7 +247,7 @@ endif ifneq ($(platform),darwin) ifeq ($(arch),i386) # this is necessary to support __sync_bool_compare_and_swap: - cflags += -march=i486 + cflags += -march=i586 endif endif