and fix the creation of the shared lib with MinGW.

SVN revision: 28081
This commit is contained in:
doursse 2007-01-20 15:36:41 +00:00 committed by doursse
parent 9373a62203
commit 7d7d514066
2 changed files with 3 additions and 2 deletions

View File

@ -22,9 +22,11 @@ AC_CHECK_HEADER(jpeglib.h,, AC_MSG_ERROR("Cannot find jpeglib.h. Make sure your
AC_CHECK_HEADERS(netinet/in.h)
winsock_libs=""
create_shared_lib=""
case "$host_os" in
mingw|mingw32)
winsock_libs="-lwsock32"
create_shared_lib="-no-undefined "
;;
esac

View File

@ -8,7 +8,6 @@ MAINTAINERCLEANFILES = Makefile.in
INCLUDES = -I. \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib/include
lib_LTLIBRARIES = libeet.la
include_HEADERS = Eet.h
@ -22,4 +21,4 @@ Eet_private.h
libeet_la_LIBADD = -lz -ljpeg @fnmatch_libs@ @winsock_libs@
libeet_la_DEPENDENCIES = $(top_builddir)/config.h
libeet_la_LDFLAGS = -version-info 9:10:9
libeet_la_LDFLAGS = @create_shared_lib@ -version-info 9:10:9