summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c6cb4bc..bf1131d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -174,7 +174,7 @@ else
174fi 174fi
175AM_CONDITIONAL([HAVE_CYTHON],[test "x$cython_python_bindings" = "xyes"]) 175AM_CONDITIONAL([HAVE_CYTHON],[test "x$cython_python_bindings" = "xyes"])
176 176
177AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Wno-strict-aliasing -fvisibility=hidden $PTHREAD_CFLAGS") 177AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Wno-strict-aliasing $PTHREAD_CFLAGS")
178GLOBAL_LDFLAGS="$PTHREAD_LIBS" 178GLOBAL_LDFLAGS="$PTHREAD_LIBS"
179 179
180AC_ARG_ENABLE(debug, 180AC_ARG_ENABLE(debug,
@@ -192,7 +192,17 @@ if (test "x$debug" = "xyes"); then
192 GLOBAL_CFLAGS+=" -g" 192 GLOBAL_CFLAGS+=" -g"
193fi 193fi
194 194
195if test "x$enable_static" = "xyes" -a "x$enable_shared" = "xno"; then
196 GLOBAL_CFLAGS+=" -DLIBPLIST_STATIC"
197fi
198
199GLOBAL_CXXFLAGS=$GLOBAL_CFLAGS
200AS_COMPILER_FLAG([-fvisibility=hidden], [
201 GLOBAL_CFLAGS+=" -fvisibility=hidden"
202], [])
203
195AC_SUBST(GLOBAL_CFLAGS) 204AC_SUBST(GLOBAL_CFLAGS)
205AC_SUBST(GLOBAL_CXXFLAGS)
196AC_SUBST(GLOBAL_LDFLAGS) 206AC_SUBST(GLOBAL_LDFLAGS)
197 207
198case "$GLOBAL_CFLAGS" in 208case "$GLOBAL_CFLAGS" in