Mercurial > hg > batmud > maputils
changeset 1859:e52b2ce7c287
Make static compilation of mapsearch possible via make variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 02 Nov 2017 15:04:57 +0200 |
parents | fc09f5ac523f |
children | 0d09c435ad0f |
files | Makefile |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Thu Nov 02 14:41:56 2017 +0200 +++ b/Makefile Thu Nov 02 15:04:57 2017 +0200 @@ -28,8 +28,11 @@ LIBWEBSOCKETS_LDFLAGS ?= $(shell pkg-config --libs libwebsockets) # Static compilation -#LIBWEBSOCKETS_LIBS = libwebsockets.a libz.a libssl.a libcrypto.a libev.a libuv.a -#LIBWEBSOCKETS_LDFLAGS = $(addprefix /usr/lib/x86_64-linux-gnu/,$(LIBWEBSOCKETS_LIBS)) -lpthread -lm -ldl +ifdef STATIC +$(info Using static build for mapsearch.) +LIBWEBSOCKETS_LIBS = libwebsockets.a libz.a libssl.a libcrypto.a libev.a libuv.a +LIBWEBSOCKETS_LDFLAGS = $(addprefix /usr/lib/x86_64-linux-gnu/,$(LIBWEBSOCKETS_LIBS)) -lpthread -lm -ldl +endif ### ### Unix targets