From 112753a66c0d690b81e28bd11e0077bf2affedc8 Mon Sep 17 00:00:00 2001
From: Steve Lhomme <robux4@ycbcr.xyz>
Date: Tue, 14 Sep 2021 10:13:38 +0200
Subject: [PATCH] configure: remove pthreadGC2 hack

We no longer force/use pthreadGC2 in 4.0
---
 configure.ac | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index b11f812ff6c1..5e316ecc8f7f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2995,9 +2995,6 @@ if test "${enable_x262}" != "no"; then
           VLC_ADD_LIBS([x262],[${av_cv_ld_bsymbolic}])
         ])
         VLC_ADD_CFLAGS([x262],[${X262_CFLAGS}])
-        if echo ${X262_LIBS} |grep -q 'pthreadGC2'; then
-          VLC_ADD_CFLAGS([x262], [-DPTW32_STATIC_LIB])
-        fi
     ], [
        if test "${enable_x262}" = "yes"; then
         AC_MSG_ERROR([x262 module doesn't work without staticly compiled libx262.a])
@@ -3023,9 +3020,6 @@ if test "${enable_x264}" != "no"; then
         ])
 
         VLC_ADD_CFLAGS([x264],[${X264_CFLAGS}])
-        if echo ${X264_LIBS} |grep -q 'pthreadGC2'; then
-          VLC_ADD_CFLAGS([x264], [-DPTW32_STATIC_LIB])
-        fi
       ],[
         if test "${enable_x264}" = "yes"; then
             AC_MSG_ERROR([${X264_PKG_ERRORS}: you may get it from http://www.videolan.org/x264.html])
@@ -3048,9 +3042,6 @@ if test "${enable_x26410b}" != "no"; then
         ])
 
         VLC_ADD_CFLAGS([x26410b],[${X264_CFLAGS}])
-        if echo ${X264_LIBS} |grep -q 'pthreadGC2'; then
-          VLC_ADD_CFLAGS([x26410b], [-DPTW32_STATIC_LIB])
-        fi
       ],[
         if test "${enable_x26410b}" = "yes"; then
             AC_MSG_ERROR([${X264_PKG_ERRORS}: you may get it from http://www.videolan.org/x264.html])
-- 
GitLab