From 35f3240cd435500a420b848f5326ff041fe70d98 Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Thu, 3 Nov 2011 16:56:31 +0100 Subject: [PATCH] OpenBSD build fix. --- configure.ac | 4 ++++ src/Makefile.am | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 6c0a8df..b743316 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 00465f6..9797f90 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 \ -- GitLab