Add -no-undefined to LDFLAGS
authorLuke Dashjr <luke-jr+git@utopios.org>
Sat, 15 Sep 2012 08:43:46 +0000 (08:43 +0000)
committerLuke Dashjr <luke-jr+git@utopios.org>
Sat, 15 Sep 2012 08:45:29 +0000 (08:45 +0000)
This tells libtool that jansson does not require any external symbols, and allows building it as a shared library (DLL) on Windows.

src/Makefile.am

index 3ba8b8b..1da435d 100644 (file)
@@ -14,6 +14,7 @@ libjansson_la_SOURCES = \
        util.h \
        value.c
 libjansson_la_LDFLAGS = \
+       -no-undefined \
        -export-symbols-regex '^json_' \
        -version-info 1:1:1