Commit 9e027628 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Use -no-undefined when building for windows

parent 49b35a96
......@@ -21,11 +21,15 @@ CFLAGS="${CFLAGS} -Wall -DDVBPSI_DIST --std=gnu99"
CFLAGS="${CFLAGS} -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
dnl check the operating system
case x"${target_os}" in
xdarwin*)
case "${target_os}" in
darwin*)
CFLAGS="${CFLAGS} -no-cpp-precomp"
;;
*mingw32* | *cygwin* | *wince* | *mingwce*)
have_win32="yes"
;;
esac
AM_CONDITIONAL(HAVE_WIN32, test "${have_win32}" = "yes")
dnl --enable-debug
AC_ARG_ENABLE(debug,
......
......@@ -11,7 +11,13 @@ libdvbpsi_la_SOURCES = dvbpsi.c dvbpsi_private.h \
$(tables_src) \
$(descriptors_src)
libdvbpsi_la_LDFLAGS = -version-info 7:0:0 -Wl,--no-undefined
libdvbpsi_la_LDFLAGS = -version-info 7:0:0
if HAVE_WIN32
libdvbpsi_la_LDFLAGS += -no-undefined
else
libdvbpsi_la_LDFLAGS += -Wl,--no-undefined
endif
pkginclude_HEADERS = dvbpsi.h psi.h descriptor.h demux.h \
tables/pat.h tables/pmt.h tables/sdt.h tables/eit.h \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment