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.
This commit is contained in:
Joel Dice 2012-03-26 18:02:43 -06:00
parent 5be0edd628
commit 1be6fe6f15

View File

@ -476,6 +476,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