diff --git a/configure.ac b/configure.ac index dbdf3377bba767d9ed4096edf7e7a6cad6947c7e..63e98d207b4b89144d115c040888e180a2f37803 100644 --- a/configure.ac +++ b/configure.ac @@ -24,11 +24,13 @@ dnl check the operating system case "${target_os}" in darwin*) CFLAGS="${CFLAGS} -no-cpp-precomp" + have_darwin="yes" ;; *mingw32* | *cygwin* | *wince* | *mingwce*) have_win32="yes" ;; esac +AM_CONDITIONAL(HAVE_DARWIN, test "${have_darwin}" = "yes") AM_CONDITIONAL(HAVE_WIN32, test "${have_win32}" = "yes") dnl --enable-debug diff --git a/src/Makefile.am b/src/Makefile.am index 2252f286c00ae75b983c9583f354f5270b903d0c..00465f67b34a882d307745f7b6c33c8d32e7bb92 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -16,8 +16,12 @@ libdvbpsi_la_LDFLAGS = -version-info 7:0:0 if HAVE_WIN32 libdvbpsi_la_LDFLAGS += -no-undefined else +if HAVE_DARWIN +libdvbpsi_la_LDFLAGS += -no-undefined +else libdvbpsi_la_LDFLAGS += -Wl,--no-undefined endif +endif pkginclude_HEADERS = dvbpsi.h psi.h descriptor.h demux.h \ tables/pat.h tables/pmt.h tables/sdt.h tables/eit.h \