summaryrefslogtreecommitdiff
path: root/multimedia/mplayer2/files/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mplayer2/files/patch-configure')
-rw-r--r--multimedia/mplayer2/files/patch-configure29
1 files changed, 29 insertions, 0 deletions
diff --git a/multimedia/mplayer2/files/patch-configure b/multimedia/mplayer2/files/patch-configure
new file mode 100644
index 000000000000..296e732fed79
--- /dev/null
+++ b/multimedia/mplayer2/files/patch-configure
@@ -0,0 +1,29 @@
+--- configure.orig 2012-05-12 01:08:28.473233004 -0500
++++ configure 2012-05-12 01:10:33.294799627 -0500
+@@ -3111,7 +3111,7 @@ echocheck "pthread"
+ if linux ; then
+ THREAD_CFLAGS=-D_REENTRANT
+ elif freebsd || netbsd || openbsd || bsdos ; then
+- THREAD_CFLAGS=-D_THREAD_SAFE
++ THREAD_CFLAGS=${PTHREAD_CFLAGS}
+ fi
+ if test "$_pthreads" = auto ; then
+ cat > $TMPC << EOF
+@@ -3128,7 +3128,7 @@ int main(void) {
+ EOF
+ _pthreads=no
+ if ! hpux ; then
+- for _ld_tmp in "-lpthreadGC2" "" "-lpthread" "-pthread" ; do
++ for _ld_tmp in ${PTHREAD_LIBS} ; do
+ # for crosscompilation, we cannot execute the program, be happy if we can link statically
+ cc_check $THREAD_CFLAGS $_ld_tmp && (tmp_run || test "$_ld_static") && _ld_pthread="$_ld_tmp" && _pthreads=yes && break
+ done
+@@ -6340,7 +6340,7 @@ TIMER = $_timer
+ EXESUF = $_exesuf
+ EXESUFS_ALL = .exe
+
+-ARCH = $arch
++MPLAYER_ARCH = $arch
+ $(mak_enable "$arch_all" "$arch" ARCH)
+ $(mak_enable "$subarch_all" "$subarch" ARCH)
+ $(mak_enable "$cpuexts_all" "$cpuexts" HAVE)