diff options
author | Samuel Barney <samjbarney@gmail.com> | 2013-12-05 15:32:19 +0100 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2013-12-05 15:32:19 +0100 |
commit | 8acfe21503f4b4fdccd03d0927ec8a11cd6457ec (patch) | |
tree | 1ea90086621fc11d433cd94ccd635d54c5a4380a /GNUmakefile | |
parent | Made suggested changes (diff) | |
parent | ProtoProxy: Fixed metadata parsing. (diff) | |
download | cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.gz cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.bz2 cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.lz cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.xz cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.zst cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.zip |
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/GNUmakefile b/GNUmakefile index e0e606d90..c8cdd35e1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -47,8 +47,8 @@ ifeq ($(release),1) # release build - fastest run-time, no gdb support ################ -CC_OPTIONS = -O3 -DNDEBUG -CXX_OPTIONS = -O3 -DNDEBUG +CC_OPTIONS = -O3 -DNDEBUG -DLUA_USE_DLOPEN +CXX_OPTIONS = -O3 -DNDEBUG -DLUA_USE_DLOPEN LNK_OPTIONS = -pthread -O3 BUILDDIR = build/release/ @@ -59,8 +59,8 @@ ifeq ($(profile),1) # profile build - a release build with symbols and profiling engine built in ################ -CC_OPTIONS = -g -ggdb -O3 -pg -DNDEBUG -CXX_OPTIONS = -g -ggdb -O3 -pg -DNDEBUG +CC_OPTIONS = -g -ggdb -O3 -pg -DNDEBUG -DLUA_USE_DLOPEN +CXX_OPTIONS = -g -ggdb -O3 -pg -DNDEBUG -DLUA_USE_DLOPEN LNK_OPTIONS = -pthread -ggdb -O3 -pg BUILDDIR = build/profile/ @@ -71,8 +71,8 @@ else # Since C code is used only for supporting libraries (zlib, lua), it is still Ofast-optimized ################ -CC_OPTIONS = -ggdb -g -D_DEBUG -O3 -CXX_OPTIONS = -ggdb -g -D_DEBUG -O1 +CC_OPTIONS = -ggdb -g -D_DEBUG -O3 -DLUA_USE_DLOPEN +CXX_OPTIONS = -ggdb -g -D_DEBUG -O1 -DLUA_USE_DLOPEN LNK_OPTIONS = -pthread -g -ggdb -O1 BUILDDIR = build/debug/ @@ -112,6 +112,14 @@ endif ################################################### +# Export all symbols from the executable, so that LuaRocks may bind to Lua routines: +LNK_OPTIONS += -rdynamic + + + + + +################################################### # 32-bit build override in 64-bit build environments ifeq ($(addm32),1) |