Commit b169eb0c authored by Jean-Paul Saman's avatar Jean-Paul Saman

Use -no-undefined when bullding for MacOS X

(cherry picked from commit 5e384da0)
parent 10ef5721
...@@ -24,11 +24,13 @@ dnl check the operating system ...@@ -24,11 +24,13 @@ dnl check the operating system
case "${target_os}" in case "${target_os}" in
darwin*) darwin*)
CFLAGS="${CFLAGS} -no-cpp-precomp" CFLAGS="${CFLAGS} -no-cpp-precomp"
have_darwin="yes"
;; ;;
*mingw32* | *cygwin* | *wince* | *mingwce*) *mingw32* | *cygwin* | *wince* | *mingwce*)
have_win32="yes" have_win32="yes"
;; ;;
esac esac
AM_CONDITIONAL(HAVE_DARWIN, test "${have_darwin}" = "yes")
AM_CONDITIONAL(HAVE_WIN32, test "${have_win32}" = "yes") AM_CONDITIONAL(HAVE_WIN32, test "${have_win32}" = "yes")
dnl --enable-debug dnl --enable-debug
......
...@@ -16,8 +16,12 @@ libdvbpsi_la_LDFLAGS = -version-info 7:0:0 ...@@ -16,8 +16,12 @@ libdvbpsi_la_LDFLAGS = -version-info 7:0:0
if HAVE_WIN32 if HAVE_WIN32
libdvbpsi_la_LDFLAGS += -no-undefined libdvbpsi_la_LDFLAGS += -no-undefined
else else
if HAVE_DARWIN
libdvbpsi_la_LDFLAGS += -no-undefined
else
libdvbpsi_la_LDFLAGS += -Wl,--no-undefined libdvbpsi_la_LDFLAGS += -Wl,--no-undefined
endif endif
endif
pkginclude_HEADERS = dvbpsi.h psi.h descriptor.h demux.h \ pkginclude_HEADERS = dvbpsi.h psi.h descriptor.h demux.h \
tables/pat.h tables/pmt.h tables/sdt.h tables/eit.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