summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMarcin Wojdyr <wojdyr@gmail.com>2013-05-10 20:07:58 +0100
committerMarcin Wojdyr <wojdyr@gmail.com>2013-05-10 20:07:58 +0100
commit6c1677707af811ad5da9e37083033288f684d5fa (patch)
treea1e23be11bfc64c2bbb55690741fc158d0d9b4d0 /configure.ac
parentb9ff2c3661a07c45916c0222b30b00b079f0a92e (diff)
downloadlibgd-6c1677707af811ad5da9e37083033288f684d5fa.tar.gz
autotools: build DLLs on Windows (win32-dll libtool option)
Since there are no undefined symbols in libgd, -no-undefined can be added unconditionally.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 1 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac
index 25c699c..86f9ccc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,18 +36,6 @@ AC_SUBST(FEATURES)
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AC_CONFIG_HEADERS([src/config.h:src/config.hin])
-AC_MSG_CHECKING([if we are building a Cygwin target])
-case "$target" in
- *-*-cygwin*) XTRA_LDFLAGS="-no-undefined"
- os_cygwin=yes
- ;;
- *) XTRA_LDFLAGS=
- os_cygwin=no
- ;;
-esac
-AC_MSG_RESULT([$os_cygwin])
-AC_SUBST([XTRA_LDFLAGS])
-
dnl newer automake wants this, but we still want to work with older
m4_ifndef([AM_PROG_AR],[m4_define([AM_PROG_AR],[:])])
AM_PROG_AR
@@ -58,7 +46,7 @@ AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MAKE_SET
-LT_INIT
+LT_INIT([win32-dll])
PKG_PROG_PKG_CONFIG
dnl may be required for freetype and Xpm