3 --- configure.orig 2013-01-06 21:53:29.000000000 +0000
5 @@ -3134,6 +3134,11 @@ case $target_os in
9 + # NetBSD/macppc *really* needs PIC enabled. ffmpeg has repeatedly
10 + # broken time and time again because PIC support has been removed
11 + # from architectures that need it. So, if you touch this, please
12 + # be careful and make sure that your changes work.
13 + test "${subarch}" != "x86_32" && enable pic
14 oss_indev_extralibs="-lossaudio"
15 oss_outdev_extralibs="-lossaudio"
16 enabled gcc || check_ldflags -Wl,-zmuldefs
17 @@ -3469,10 +3474,13 @@ check_cc <<EOF && enable attribute_may_a
18 union { int x; } __attribute__((may_alias)) x;
21 -check_cc <<EOF || die "endian test failed"
22 -unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
23 +check_exec <<EOF || enable bigendian
27 + return !(*((char *)(&one)));
30 -od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
32 if enabled alpha; then
34 @@ -4010,6 +4018,7 @@ enabled xmm_clobber_test &&
35 -Wl,--wrap,sws_scale ||
36 disable xmm_clobber_test
40 if test_ldflags -Wl,--version-script,$TMPV; then
41 append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver'
42 @@ -4022,6 +4031,7 @@ __asm__(".symver ff_foo,av_foo@VERSION")
48 if [ -z "$optflags" ]; then
49 if enabled small; then
50 @@ -4517,7 +4527,7 @@ Version: $version
51 Requires: $(enabled shared || echo $requires)
52 Requires.private: $(enabled shared && echo $requires)
54 -Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs)
55 +Libs: -L\${libdir} -Wl,-R\${libdir} -l${shortname} $(enabled shared || echo $libs)
56 Libs.private: $(enabled shared && echo $libs)
57 Cflags: -I\${includedir}