[libdvdnav-devel] [PATCH v2] Fix pthread check on OS/2

KO Myung-Hun komh78 at gmail.com
Tue Jan 23 05:24:00 CET 2018


pthread check fails due to -no-undefined of LDFLAGS. gcc4 treats
unknown flags as an error unlike gcc3.

Add -no-undefined libtool flag after all checks
---
 configure.ac | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5be1afb..555bfd3 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 ---------------------------------------------
@@ -113,6 +110,14 @@ dnl ---------------------------------------------
 AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, no)
 
 dnl ---------------------------------------------
+dnl -no-undefined libtool flag
+dnl
+dnl This should be after all checks
+dnl ---------------------------------------------
+AS_CASE([$host_os],
+  [os2*], [LDFLAGS="$LDFLAGS -no-undefined"])
+
+dnl ---------------------------------------------
 dnl Output configuration files
 dnl ---------------------------------------------
 AC_OUTPUT([
-- 
2.13.3



More information about the libdvdnav-devel mailing list