diff options
| author | 2024-01-29 10:45:41 +0100 | |
|---|---|---|
| committer | 2024-01-29 10:45:41 +0100 | |
| commit | 3daee6097cfa14c597e5104b02acfe83749001d9 (patch) | |
| tree | f810f63085b5f7270df1ca0fcab68d7479729957 /configure.ac | |
| parent | b3cf5bec39de69bf06c7813689f03cbe58f45ca9 (diff) | |
| download | libplist-3daee6097cfa14c597e5104b02acfe83749001d9.tar.gz libplist-3daee6097cfa14c597e5104b02acfe83749001d9.tar.bz2 | |
Fix PLIST_API definitions
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 12 |
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 | |||
| 174 | fi | 174 | fi |
| 175 | AM_CONDITIONAL([HAVE_CYTHON],[test "x$cython_python_bindings" = "xyes"]) | 175 | AM_CONDITIONAL([HAVE_CYTHON],[test "x$cython_python_bindings" = "xyes"]) |
| 176 | 176 | ||
| 177 | AS_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") | 177 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Wno-strict-aliasing $PTHREAD_CFLAGS") |
| 178 | GLOBAL_LDFLAGS="$PTHREAD_LIBS" | 178 | GLOBAL_LDFLAGS="$PTHREAD_LIBS" |
| 179 | 179 | ||
| 180 | AC_ARG_ENABLE(debug, | 180 | AC_ARG_ENABLE(debug, |
| @@ -192,7 +192,17 @@ if (test "x$debug" = "xyes"); then | |||
| 192 | GLOBAL_CFLAGS+=" -g" | 192 | GLOBAL_CFLAGS+=" -g" |
| 193 | fi | 193 | fi |
| 194 | 194 | ||
| 195 | if test "x$enable_static" = "xyes" -a "x$enable_shared" = "xno"; then | ||
| 196 | GLOBAL_CFLAGS+=" -DLIBPLIST_STATIC" | ||
| 197 | fi | ||
| 198 | |||
| 199 | GLOBAL_CXXFLAGS=$GLOBAL_CFLAGS | ||
| 200 | AS_COMPILER_FLAG([-fvisibility=hidden], [ | ||
| 201 | GLOBAL_CFLAGS+=" -fvisibility=hidden" | ||
| 202 | ], []) | ||
| 203 | |||
| 195 | AC_SUBST(GLOBAL_CFLAGS) | 204 | AC_SUBST(GLOBAL_CFLAGS) |
| 205 | AC_SUBST(GLOBAL_CXXFLAGS) | ||
| 196 | AC_SUBST(GLOBAL_LDFLAGS) | 206 | AC_SUBST(GLOBAL_LDFLAGS) |
| 197 | 207 | ||
| 198 | case "$GLOBAL_CFLAGS" in | 208 | case "$GLOBAL_CFLAGS" in |
