0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-19 19:33:45 +02:00

modules: Add ld.gold flags section; disable unique symbols.

This commit is contained in:
Jason Volk 2022-06-29 19:07:43 -07:00
parent 8a20079122
commit 4cf3476e7b
2 changed files with 6 additions and 0 deletions

View file

@ -47,6 +47,7 @@ endif
endif
if GOLD
AM_LDFLAGS += -Wl,--no-gnu-unique
AM_LDFLAGS += -Wl,--no-text-reorder
AM_LDFLAGS += -Wl,--sort-common=descending
endif

View file

@ -21,6 +21,11 @@ AM_LDFLAGS += -L$(top_srcdir)/ircd
AM_LDFLAGS += -L$(top_srcdir)/matrix
AM_LDFLAGS += $(PLATFORM_LDFLAGS)
if GOLD
AM_LDFLAGS += -Wl,--no-gnu-unique
AM_LDFLAGS += -Wl,--sort-common=descending
endif
AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
AM_CPPFLAGS += $(EXTRA_CPPFLAGS)
AM_LDFLAGS += $(EXTRA_LDFLAGS)