and fix the creation of the shared lib with MinGW.
authordoursse <doursse>
Sat, 20 Jan 2007 15:36:41 +0000 (15:36 +0000)
committerdoursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 20 Jan 2007 15:36:41 +0000 (15:36 +0000)
SVN revision: 28081

legacy/eet/configure.in
legacy/eet/src/lib/Makefile.am

index f1dceb3..116fb5d 100644 (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
 
index 0829fbd..c17c496 100644 (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