mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
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:
parent
97ebf2173c
commit
031852daec
1
makefile
1
makefile
@ -472,6 +472,7 @@ ifneq ($(platform),darwin)
|
|||||||
ifeq ($(arch),i386)
|
ifeq ($(arch),i386)
|
||||||
# this is necessary to support __sync_bool_compare_and_swap:
|
# this is necessary to support __sync_bool_compare_and_swap:
|
||||||
cflags += -march=i586
|
cflags += -march=i586
|
||||||
|
lflags += -march=i586
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user