"-Wl,--as-needed" was hiding some wanted libs. Comments? OKs?
Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/ffmpeg/Makefile,v retrieving revision 1.90 diff -u -p -r1.90 Makefile --- Makefile 12 Sep 2012 08:15:57 -0000 1.90 +++ Makefile 20 Nov 2012 10:46:36 -0000 @@ -5,7 +5,7 @@ COMMENT= audio/video converter and strea V= 20120610 DISTNAME= ffmpeg-git-${V} PKGNAME= ffmpeg-${V} -REVISION= 1 +REVISION= 2 CATEGORIES= graphics multimedia MASTER_SITES= http://comstyle.com/source/ EXTRACT_SUFX= .tar.xz @@ -28,9 +28,9 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= SDL X11 Xext Xfixes bz2 c gsm m mp3lame pthread \ - schroedinger-1.0>=2 sndio speex theoradec theoraenc \ - vorbis vorbisenc vpx x264>=8 xvidcore z +WANTLIB= SDL X11 Xext Xfixes bz2 c gsm m mp3lame ogg orc-0.4 \ + pthread schroedinger-1.0>=2 sndio speex theoradec \ + theoraenc vorbis vorbisenc vpx x264>=8 xvidcore z BUILD_DEPENDS= textproc/texi2html .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" Index: patches/patch-configure =================================================================== RCS file: /cvs/ports/graphics/ffmpeg/patches/patch-configure,v retrieving revision 1.31 diff -u -p -r1.31 patch-configure --- patches/patch-configure 12 Sep 2012 08:15:57 -0000 1.31 +++ patches/patch-configure 20 Nov 2012 10:46:36 -0000 @@ -1,6 +1,6 @@ $OpenBSD: patch-configure,v 1.31 2012/09/12 08:15:57 ajacoutot Exp $ ---- configure.orig Sun Jun 10 00:59:57 2012 -+++ configure Tue Sep 11 22:47:01 2012 +--- configure.orig Sun Jun 10 06:59:57 2012 ++++ configure Tue Nov 20 11:01:39 2012 @@ -1092,7 +1092,6 @@ HAVE_LIST=" lzo1x_999_compress machine_ioctl_bt848_h @@ -26,7 +26,16 @@ $OpenBSD: patch-configure,v 1.31 2012/09 enable_pic() { enable pic -@@ -2931,7 +2931,7 @@ enabled libdirac && require_pkg_config dirac +@@ -2797,8 +2797,6 @@ if enabled asm; then + $nogas "GNU assembler not found, install gas-preprocessor" + fi + +-check_ldflags -Wl,--as-needed +- + if check_func dlopen; then + ldl= + elif check_func dlopen -ldl; then +@@ -2931,7 +2929,7 @@ enabled libdirac && require_pkg_config dirac "dirac_decoder_init dirac_encoder_init" enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaac enabled libfreetype && require_pkg_config freetype2 "ft2build.h freetype/freetype.h" FT_Init_FreeType @@ -35,7 +44,7 @@ $OpenBSD: patch-configure,v 1.31 2012/09 enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h lame_set_VBR_quality -lmp3lame enabled libnut && require libnut libnut.h nut_demuxer_init -lnut enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb -@@ -3075,10 +3075,6 @@ fi +@@ -3075,10 +3073,6 @@ fi if enabled small; then add_cflags $size_cflags @@ -46,7 +55,7 @@ $OpenBSD: patch-configure,v 1.31 2012/09 fi check_cflags -fno-math-errno check_cflags -fno-signed-zeros -@@ -3506,6 +3502,7 @@ comment=$2 +@@ -3506,6 +3500,7 @@ comment=$2 version=$3 libs=$4 requires=$5 @@ -54,7 +63,7 @@ $OpenBSD: patch-configure,v 1.31 2012/09 enabled ${name#lib} || return 0 cat <<EOF > $name/$name.pc prefix=$prefix -@@ -3519,7 +3516,7 @@ Version: $version +@@ -3519,7 +3514,7 @@ Version: $version Requires: $(enabled shared || echo $requires) Requires.private: $(enabled shared && echo $requires) Conflicts: @@ -63,7 +72,7 @@ $OpenBSD: patch-configure,v 1.31 2012/09 Libs.private: $(enabled shared && echo $libs) Cflags: -I\${includedir} EOF -@@ -3539,10 +3536,10 @@ Cflags: -I\${includedir} +@@ -3539,10 +3534,10 @@ Cflags: -I\${includedir} EOF }