From bdadc136b218260c86e104495218a3688cd1429d Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 17 May 2007 15:46:17 +0000 Subject: [PATCH] Fix the build on MacOSX. since the one shipped by Apple is from the middle ages and is packed with issues. Original commit message from CVS: * configure.ac: * ext/ffmpeg/Makefile.am: * ext/libpostproc/Makefile.am: Fix the build on MacOSX. This requires a recent enough version of libtool (ex : 1.5.22), since the one shipped by Apple is from the middle ages and is packed with issues. Fixes #435742 --- ChangeLog | 11 +++++++++++ common | 2 +- configure.ac | 12 ++++++++++++ ext/ffmpeg/Makefile.am | 2 +- ext/libpostproc/Makefile.am | 2 +- 5 files changed, 26 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index bb72d98e26..26df2c154f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2007-05-17 Edward Hervey + + * configure.ac: + * ext/ffmpeg/Makefile.am: + * ext/libpostproc/Makefile.am: + Fix the build on MacOSX. + This requires a recent enough version of libtool (ex : 1.5.22), since + the one shipped by Apple is from the middle ages and is packed with + issues. + Fixes #435742 + 2007-05-09 Edward Hervey * ext/ffmpeg/gstffmpeg.c: (gst_ffmpeg_av_find_stream_info): diff --git a/common b/common index 61edc2dc7b..b5971d76cc 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 61edc2dc7b8eba179d85a6545e46e0d65239e94d +Subproject commit b5971d76ccd216c27e095c02c3a369a9d05cb36d diff --git a/configure.ac b/configure.ac index 88b58e7f0b..b34506763d 100644 --- a/configure.ac +++ b/configure.ac @@ -171,6 +171,18 @@ dnl check for "check", unit testing library/header AM_PATH_CHECK(0.9.2, HAVE_CHECK=yes, HAVE_CHECK=no) AM_CONDITIONAL(HAVE_CHECK, test "x$HAVE_CHECK" = "xyes") +dnl Add MacOSX specific flags +AC_CANONICAL_HOST +case $host_os in + darwin*) + DARWIN_LDFLAGS="-Wl,-read_only_relocs,suppress" + ;; + *) + DARWIN_LDFLAGS="" + ;; +esac +AC_SUBST(DARWIN_LDFLAGS) + dnl *** configure external libs *** HAVE_FFMPEG_UNINSTALLED=1 diff --git a/ext/ffmpeg/Makefile.am b/ext/ffmpeg/Makefile.am index 71514afc9c..61dd97a3f0 100644 --- a/ext/ffmpeg/Makefile.am +++ b/ext/ffmpeg/Makefile.am @@ -14,7 +14,7 @@ libgstffmpeg_la_SOURCES = gstffmpeg.c \ libgstffmpeg_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \ $(FFMPEG_CFLAGS) libgstffmpeg_la_LIBADD = $(FFMPEG_LIBS) $(GST_BASE_LIBS) -libgstffmpeg_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libgstffmpeg_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(DARWIN_LDFLAGS) if HAVE_FFMPEG_UNINSTALLED libgstffmpeg_la_DEPENDENCIES = $(FFMPEG_LIBS) diff --git a/ext/libpostproc/Makefile.am b/ext/libpostproc/Makefile.am index 6df8656705..b6aded85bb 100644 --- a/ext/libpostproc/Makefile.am +++ b/ext/libpostproc/Makefile.am @@ -8,4 +8,4 @@ libgstpostproc_la_LIBADD = -lgstvideo-@GST_MAJORMINOR@ \ $(POSTPROC_LIBS) \ $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(LIBOIL_LIBS) -libgstpostproc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libgstpostproc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(DARWIN_LDFLAGS)