summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-10 02:17:53 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-10 02:17:53 +0300
commitf6d2f6699a03242c43fae46a0818055ffeeb1950 (patch)
tree9a2233320c183a74dcfcdff3e3df6d3c96ee5733 /src/Makefile.am
parent068559d00381487ce8f4222ff5641cd66192a85a (diff)
downloadevol-hercules-f6d2f6699a03242c43fae46a0818055ffeeb1950.tar.gz
evol-hercules-f6d2f6699a03242c43fae46a0818055ffeeb1950.tar.bz2
evol-hercules-f6d2f6699a03242c43fae46a0818055ffeeb1950.tar.xz
evol-hercules-f6d2f6699a03242c43fae46a0818055ffeeb1950.zip
add ld flag to build fail if unknown function called.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index dd1268b..7c8c3c7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -17,18 +17,19 @@ MAP_SRC = map/dummy.c \
map/session.h \
map/sessionext.h
-SHARED_FLAGS = -pipe -ffast-math -Wall -Wextra -Wno-sign-compare -fsanitize=address
+SHARED_CFLAGS = -pipe -ffast-math -Wall -Wextra -Wno-sign-compare -fsanitize=address
+SHARED_LDFLAGS = -avoid-version -Wl,--no-undefined
lib_LTLIBRARIES = libevol_char.la libevol_login.la libevol_map.la
libevol_char_la_SOURCES = ${CHAR_SRC}
-libevol_char_la_LDFLAGS = -avoid-version
-libevol_char_la_CFLAGS = ${SHARED_FLAGS}
+libevol_char_la_LDFLAGS = ${SHARED_LDFLAGS}
+libevol_char_la_CFLAGS = ${SHARED_CFLAGS}
libevol_login_la_SOURCES = ${LOGIN_SRC}
-libevol_login_la_LDFLAGS = -avoid-version
-libevol_login_la_CFLAGS = ${SHARED_FLAGS}
+libevol_login_la_LDFLAGS = ${SHARED_LDFLAGS}
+libevol_login_la_CFLAGS = ${SHARED_CFLAGS}
libevol_map_la_SOURCES = ${MAP_SRC}
-libevol_map_la_LDFLAGS = -avoid-version
-libevol_map_la_CFLAGS = ${SHARED_FLAGS}
+libevol_map_la_LDFLAGS = ${SHARED_LDFLAGS}
+libevol_map_la_CFLAGS = ${SHARED_CFLAGS}
all-local: libevol_char.la libevol_login.la libevol_map.la
cp .libs/*.so ../../../../plugins || cp .libs/*.so ../../../plugins