summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-12 17:29:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-12 17:29:28 +0300
commit0b54822a82f01fe02bda4cb93c56013ab538c406 (patch)
tree6cdac227f9f6bf115faa4672d3a6180aa9b033f5 /src/Makefile.am
parent083628b8ee0ffb7832221bcb5ef387ecf063f620 (diff)
downloadevol-hercules-0b54822a82f01fe02bda4cb93c56013ab538c406.tar.gz
evol-hercules-0b54822a82f01fe02bda4cb93c56013ab538c406.tar.bz2
evol-hercules-0b54822a82f01fe02bda4cb93c56013ab538c406.tar.xz
evol-hercules-0b54822a82f01fe02bda4cb93c56013ab538c406.zip
In configure add flag for semi static build.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index d95ddfc..be513e7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -22,8 +22,13 @@ MAP_SRC = map/dummy.c \
map/sessionext.h
SHARED_CFLAGS = -pipe -ffast-math -Wall -Wextra -Wno-sign-compare -fsanitize=address
+
SHARED_LDFLAGS = -avoid-version -Wl,--no-undefined -lasan
+if ENABLE_STATIC
+SHARED_CFLAGS += "-static-libgcc"
+endif
+
lib_LTLIBRARIES = libevol_char.la libevol_login.la libevol_map.la
libevol_char_la_SOURCES = ${CHAR_SRC}
libevol_char_la_LDFLAGS = ${SHARED_LDFLAGS}