[DVDnav-discuss] [PATCH] Fix pthread check on OS/2

KO Myung-Hun komh78 at gmail.com
Wed Jan 18 08:43:07 EET 2017


pthread check fails due to -no-undefined of LDFLAGS. gcc4 treats
unknown flags as an error unlike gcc3.
---
 configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index af429b4..7d3f671 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,9 +72,6 @@ AC_C_BIGENDIAN
 AS_CASE([$host],
   [*mingw32* | *cygwin*], [AC_CHECK_FUNCS(gettimeofday)])
 
-AS_CASE([$host],
-  [*os2*], [LDFLAGS="$LDFLAGS -no-undefined"])
-
 dnl ---------------------------------------------
 dnl threads
 dnl ---------------------------------------------
@@ -112,6 +109,9 @@ dnl Check for doxygen (dynamic documentation generator)
 dnl ---------------------------------------------
 AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, no)
 
+AS_CASE([$host],
+  [*os2*], [LDFLAGS="$LDFLAGS -no-undefined"])
+
 dnl ---------------------------------------------
 dnl Output configuration files
 dnl ---------------------------------------------
-- 
2.11.0



More information about the DVDnav-discuss mailing list