Skip to content

Commit

Permalink
Added compatility flags for shared library build on mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
Snaipe committed Apr 15, 2015
1 parent ece86b2 commit fab634c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion configure.ac
Expand Up @@ -7,7 +7,7 @@ LT_PREREQ([2.2.4])
AC_CANONICAL_SYSTEM

AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip foreign subdir-objects parallel-tests color-tests])
LT_INIT
LT_INIT([shared static])
AC_CONFIG_MACRO_DIR([m4])

AC_PROG_CC
Expand Down Expand Up @@ -45,6 +45,17 @@ AC_ARG_ENABLE([gcov],
],
[])

AC_MSG_CHECKING([if libtool needs -no-undefined flag to build shared libraries])
case "`uname`" in
CYGWIN*|MINGW*|AIX*)
AC_MSG_RESULT([yes])
LDFLAGS="$LDFLAGS -no-undefined"
;;
*)
AC_MSG_RESULT([no])
;;
esac

AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_FILES([Makefile check/Makefile])

Expand Down

0 comments on commit fab634c

Please sign in to comment.