From 031852daec60100e741d06c918cce16f0d542468 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 26 Mar 2012 18:02:43 -0600 Subject: [PATCH] add -march=i586 to lflags as well as cflags where appropriate When link time optimization is enabled, we need to remind the compiler that we're targeting i586 when linking so it can resolve atomic operations like __sync_bool_compare_and_swap. --- makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/makefile b/makefile index 53ca635f7f..635fb052c9 100755 --- a/makefile +++ b/makefile @@ -472,6 +472,7 @@ ifneq ($(platform),darwin) ifeq ($(arch),i386) # this is necessary to support __sync_bool_compare_and_swap: cflags += -march=i586 + lflags += -march=i586 endif endif