mirror of
https://github.com/matrix-construct/construct
synced 2024-12-02 03:32:52 +01:00
Fix -fuse-ld ldflags.
This commit is contained in:
parent
83dd5581be
commit
c692b009a4
3 changed files with 36 additions and 3 deletions
|
@ -22,7 +22,6 @@ AM_CPPFLAGS = \
|
||||||
|
|
||||||
AM_LDFLAGS = \
|
AM_LDFLAGS = \
|
||||||
-dlopen self \
|
-dlopen self \
|
||||||
-Wl,-fuse-ld=gold \
|
|
||||||
-Wl,--warn-execstack \
|
-Wl,--warn-execstack \
|
||||||
-Wl,--warn-common \
|
-Wl,--warn-common \
|
||||||
-Wl,--detect-odr-violations \
|
-Wl,--detect-odr-violations \
|
||||||
|
@ -41,6 +40,18 @@ AM_LDFLAGS = \
|
||||||
@EXTRA_LDFLAGS@ \
|
@EXTRA_LDFLAGS@ \
|
||||||
###
|
###
|
||||||
|
|
||||||
|
if GCC
|
||||||
|
AM_LDFLAGS += \
|
||||||
|
-Wl,-fuse-ld=gold \
|
||||||
|
###
|
||||||
|
endif
|
||||||
|
|
||||||
|
if CLANG
|
||||||
|
AM_LDFLAGS += \
|
||||||
|
-fuse-ld=gold \
|
||||||
|
###
|
||||||
|
endif
|
||||||
|
|
||||||
bin_PROGRAMS = construct
|
bin_PROGRAMS = construct
|
||||||
|
|
||||||
construct_LDFLAGS = \
|
construct_LDFLAGS = \
|
||||||
|
|
|
@ -33,7 +33,6 @@ AM_CPPFLAGS = \
|
||||||
|
|
||||||
AM_LDFLAGS = \
|
AM_LDFLAGS = \
|
||||||
-version-info 3:1:0 \
|
-version-info 3:1:0 \
|
||||||
-Wl,-fuse-ld=gold \
|
|
||||||
-Wl,--warn-common \
|
-Wl,--warn-common \
|
||||||
-Wl,--warn-execstack \
|
-Wl,--warn-execstack \
|
||||||
-Wl,--detect-odr-violations \
|
-Wl,--detect-odr-violations \
|
||||||
|
@ -53,6 +52,18 @@ AM_LDFLAGS = \
|
||||||
@EXTRA_LDFLAGS@ \
|
@EXTRA_LDFLAGS@ \
|
||||||
###
|
###
|
||||||
|
|
||||||
|
if GCC
|
||||||
|
AM_LDFLAGS += \
|
||||||
|
-Wl,-fuse-ld=gold \
|
||||||
|
###
|
||||||
|
endif
|
||||||
|
|
||||||
|
if CLANG
|
||||||
|
AM_LDFLAGS += \
|
||||||
|
-fuse-ld=gold \
|
||||||
|
###
|
||||||
|
endif
|
||||||
|
|
||||||
if MINGW
|
if MINGW
|
||||||
AM_LDFLAGS += \
|
AM_LDFLAGS += \
|
||||||
-Wl,--enable-runtime-pseudo-reloc \
|
-Wl,--enable-runtime-pseudo-reloc \
|
||||||
|
|
|
@ -33,7 +33,6 @@ AM_CPPFLAGS = \
|
||||||
AM_LDFLAGS = \
|
AM_LDFLAGS = \
|
||||||
-module \
|
-module \
|
||||||
-avoid-version \
|
-avoid-version \
|
||||||
-Wl,-fuse-ld=gold \
|
|
||||||
-Wl,--warn-common \
|
-Wl,--warn-common \
|
||||||
-Wl,--warn-execstack \
|
-Wl,--warn-execstack \
|
||||||
-Wl,--detect-odr-violations \
|
-Wl,--detect-odr-violations \
|
||||||
|
@ -49,6 +48,18 @@ AM_LDFLAGS = \
|
||||||
@EXTRA_LDFLAGS@ \
|
@EXTRA_LDFLAGS@ \
|
||||||
###
|
###
|
||||||
|
|
||||||
|
if GCC
|
||||||
|
AM_LDFLAGS += \
|
||||||
|
-Wl,-fuse-ld=gold \
|
||||||
|
###
|
||||||
|
endif
|
||||||
|
|
||||||
|
if CLANG
|
||||||
|
AM_LDFLAGS += \
|
||||||
|
-fuse-ld=gold \
|
||||||
|
###
|
||||||
|
endif
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# /
|
# /
|
||||||
|
|
Loading…
Reference in a new issue