diff --git a/configure.ac b/configure.ac index 63e98d207b4b89144d115c040888e180a2f37803..ea6da628c5c9df346d83995dcd15a697e0f29738 100644 --- a/configure.ac +++ b/configure.ac @@ -29,9 +29,13 @@ case "${target_os}" in *mingw32* | *cygwin* | *wince* | *mingwce*) have_win32="yes" ;; + *bsd*) + have_bsd="yes" + ;; esac AM_CONDITIONAL(HAVE_DARWIN, test "${have_darwin}" = "yes") AM_CONDITIONAL(HAVE_WIN32, test "${have_win32}" = "yes") +AM_CONDITIONAL(HAVE_BSD, test "${have_bsd}" = "yes") dnl --enable-debug AC_ARG_ENABLE(debug, diff --git a/src/Makefile.am b/src/Makefile.am index 00465f67b34a882d307745f7b6c33c8d32e7bb92..9797f90b9e738bea5bc4a1117ea9cfa13c29aada 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -19,9 +19,13 @@ else if HAVE_DARWIN libdvbpsi_la_LDFLAGS += -no-undefined else +if HAVE_BSD +libdvbpsi_la_LDFLAGS += +else libdvbpsi_la_LDFLAGS += -Wl,--no-undefined endif endif +endif pkginclude_HEADERS = dvbpsi.h psi.h descriptor.h demux.h \ tables/pat.h tables/pmt.h tables/sdt.h tables/eit.h \