mirror of
https://github.com/corda/corda.git
synced 2025-01-17 10:20:02 +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
5be0edd628
commit
1be6fe6f15
1
makefile
1
makefile
@ -476,6 +476,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