$NetBSD: patch-configure,v 1.3 2014/04/01 10:51:49 adam Exp $ --- configure.orig 2014-03-23 22:08:02.000000000 +0000 +++ configure @@ -3716,6 +3716,11 @@ case $target_os in ;; netbsd) disable symver + # NetBSD/macppc *really* needs PIC enabled. ffmpeg has repeatedly + # broken time and time again because PIC support has been removed + # from architectures that need it. So, if you touch this, please + # be careful and make sure that your changes work. + test "${subarch}" != "x86_32" && enable pic oss_indev_extralibs="-lossaudio" oss_outdev_extralibs="-lossaudio" enabled gcc || check_ldflags -Wl,-zmuldefs @@ -4101,10 +4106,13 @@ check_cc < $TMPV if test_ldflags -Wl,--version-script,$TMPV; then append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver' @@ -4739,6 +4748,7 @@ __asm__(".symver ff_foo,av_foo@VERSION") void ff_foo(void) {} EOF fi +fi if [ -z "$optflags" ]; then if enabled small; then @@ -5259,7 +5269,7 @@ Version: $version Requires: $(enabled shared || echo $requires) Requires.private: $(enabled shared && echo $requires) Conflicts: -Libs: -L\${libdir} $(enabled rpath && echo "-Wl,-rpath,\${libdir}") -l${shortname} $(enabled shared || echo $libs) +Libs: -L\${libdir} -Wl,-R\${libdir} $(enabled rpath && echo "-Wl,-rpath,\${libdir}") -l${shortname} $(enabled shared || echo $libs) Libs.private: $(enabled shared && echo $libs) Cflags: -I\${includedir} EOF