0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 10:08:56 +02:00

ircd: Minor cleanup Makefile PLATFORM_LDFLAGS.

This commit is contained in:
Jason Volk 2019-05-25 22:35:54 -07:00
parent dd441038b1
commit 3b6ce6ed6c

View file

@ -5,6 +5,12 @@ AM_CXXFLAGS = \
@EXTRA_CXXFLAGS@ \
###
if DEBUG
if GCC
AM_CXXFLAGS += -fmax-errors=2
endif
endif
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
@ROCKSDB_CPPFLAGS@ \
@ -21,16 +27,6 @@ AM_CPPFLAGS = \
@EXTRA_CPPFLAGS@ \
###
if MINGW
PLATFORM_LDFLAGS = -Wl,--enable-runtime-pseudo-reloc -export-symbols-regex '*'
endif
if DEBUG
if GCC
AM_CXXFLAGS += -fmax-errors=2
endif
endif
AM_LDFLAGS = \
-version-info 3:1:0 \
-Wl,-fuse-ld=gold \
@ -50,10 +46,16 @@ AM_LDFLAGS = \
-Wl,-z -Wl,noexecstack \
-Wl,-z -Wl,combreloc \
-Wl,-z -Wl,text-unlikely-segment \
$(PLATFORM_LDFLAGS) \
@EXTRA_LDFLAGS@ \
###
if MINGW
AM_LDFLAGS += \
-Wl,--enable-runtime-pseudo-reloc \
-export-symbols-regex '*' \
###
endif
libircddir = @libdir@
libircd_LTLIBRARIES = libircd.la