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 97ebf2173c
commit 031852daec

View File

@ -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