Commits

Ondřej Surý committed 6b51326 Merge

Merged in wojdyr/gd-libgd-fork/dll (pull request #7)

autotools: build DLLs on Windows (win32-dll libtool option)

  • Participants
  • Parent commits b9ff2c3, 6c16777

Comments (0)

Files changed (2)

File configure.ac

 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
 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

File src/Makefile.am

                    gd_tga.c gd_tga.h gd_bmp.c bmp.h gd_color.h gd_nnquant.h gd_tga.h gd_intern.h gd_io_stream.h gd_xbm.c \
 		   gd_color_match.c
 
-libgd_la_LDFLAGS = -version-info $(GDLIB_CURRENT):$(GDLIB_REVISION):$(GDLIB_AGE) $(XTRA_LDFLAGS)
+libgd_la_LDFLAGS = -version-info $(GDLIB_CURRENT):$(GDLIB_REVISION):$(GDLIB_AGE) -no-undefined
 
 libgd_la_LIBADD = $(LTLIBICONV)