fix libopenjpip link on Windows

This commit is contained in:
Vincent Torri 2012-01-25 20:56:07 +00:00
parent f3f86e1eb7
commit aab317eb8c
3 changed files with 37 additions and 29 deletions

View File

@ -6,6 +6,7 @@ What's New for OpenJPEG
+ : added + : added
January 25, 2012 January 25, 2012
* [vincent] fix libopenjpip link on Windows
* [vincent] follow latest JPIP changes in the autotools side (pthread dependency, conditional compilation of JPIP server and client) * [vincent] follow latest JPIP changes in the autotools side (pthread dependency, conditional compilation of JPIP server and client)
December 8, 2011 December 8, 2011

View File

@ -84,8 +84,8 @@ libopenjpip_server_la_CPPFLAGS = \
@FCGI_CFLAGS@ \ @FCGI_CFLAGS@ \
@LIBCURL_CFLAGS@ \ @LIBCURL_CFLAGS@ \
-DSERVER -DSERVER
libopenjpip_server_la_CFLAGS = @PTHREAD_CFLAGS@ libopenjpip_server_la_CFLAGS = @THREAD_CFLAGS@
libopenjpip_server_la_LIBADD = @FCGI_LIBS@ @LIBCURL_LIBS@ @PTHREAD_LIBS@ -lm libopenjpip_server_la_LIBADD = @FCGI_LIBS@ @LIBCURL_LIBS@ @THREAD_LIBS@ -lm
libopenjpip_server_la_LDFLAGS = -no-undefined -version-info @lt_version@ libopenjpip_server_la_LDFLAGS = -no-undefined -version-info @lt_version@
libopenjpip_server_la_SOURCES = $(JPIP_SRC) libopenjpip_server_la_SOURCES = $(JPIP_SRC)
@ -96,8 +96,8 @@ libopenjpip_local_la_CPPFLAGS = \
-I$(top_srcdir)/applications/jpip/libopenjpip \ -I$(top_srcdir)/applications/jpip/libopenjpip \
-I$(top_builddir)/applications/jpip/libopenjpip \ -I$(top_builddir)/applications/jpip/libopenjpip \
@LIBCURL_CFLAGS@ @LIBCURL_CFLAGS@
libopenjpip_local_la_CFLAGS = @PTHREAD_CFLAGS@ libopenjpip_local_la_CFLAGS = @THREAD_CFLAGS@
libopenjpip_local_la_LIBADD = @PTHREAD_LIBS@ $(top_builddir)/libopenjpeg/libopenjpeg.la -lm libopenjpip_local_la_LIBADD = @THREAD_LIBS@ $(top_builddir)/libopenjpeg/libopenjpeg.la -lm
libopenjpip_local_la_LDFLAGS = -no-undefined -version-info @lt_version@ libopenjpip_local_la_LDFLAGS = -no-undefined -version-info @lt_version@
libopenjpip_local_la_SOURCES = $(JPIP_SRC) $(LOCAL_SRC) libopenjpip_local_la_SOURCES = $(JPIP_SRC) $(LOCAL_SRC)

View File

@ -348,7 +348,9 @@ fi
# pthread # pthread
if test "x${want_jpip}" = "xyes" && test "x${have_win32}" = "xno" ; then if test "x${want_jpip}" = "xyes" ; then
if test "x${have_win32}" = "xno" ; then
SAVE_CFLAGS=${CFLAGS} SAVE_CFLAGS=${CFLAGS}
CFLAGS="${CFLAGS} -pthread" CFLAGS="${CFLAGS} -pthread"
@ -374,16 +376,21 @@ id = pthread_self();
AC_MSG_WARN([Pthread library not found. OpenJPIP library will not be compiled.]) AC_MSG_WARN([Pthread library not found. OpenJPIP library will not be compiled.])
want_jpip="no" want_jpip="no"
else else
PTHREAD_CFLAGS="-pthread" THREAD_CFLAGS="-pthread"
AC_ARG_VAR([PTHREAD_CFLAGS], [compiler flag for Pthread]) THREAD_LIBS="-pthread"
AC_SUBST([PTHREAD_CFLAGS]) fi
PTHREAD_LIBS="-pthread"
AC_ARG_VAR([PTHREAD_LIBS], [linker flags for Pthread]) else
AC_SUBST([PTHREAD_LIBS]) THREAD_LIBS="-lws2_32"
fi fi
fi fi
AC_ARG_VAR([THREAD_CFLAGS], [compiler flag for the thread library])
AC_SUBST([THREAD_CFLAGS])
AC_ARG_VAR([THREAD_LIBS], [linker flags for thread library])
AC_SUBST([THREAD_LIBS])
# libfcgi # libfcgi
if test "x${want_jpip_server}" = "xyes" ; then if test "x${want_jpip_server}" = "xyes" ; then