[libdvdnav-devel] [Git][videolan/libdvdnav][master] Fix pthread check on OS/2

Jean-Baptiste Kempf gitlab at videolan.org
Tue Feb 12 14:54:30 CET 2019


Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdnav


Commits:
ed3d4c31 by KO Myung-Hun at 2019-02-12T13:54:12Z
Fix pthread check on OS/2

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

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
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,14 @@ dnl Check for doxygen (dynamic documentation generator)
 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 ---------------------------------------------



View it on GitLab: https://code.videolan.org/videolan/libdvdnav/commit/ed3d4c31e16d976b8b95822570d7ea1f921e26ac

-- 
View it on GitLab: https://code.videolan.org/videolan/libdvdnav/commit/ed3d4c31e16d976b8b95822570d7ea1f921e26ac
You're receiving this email because of your account on code.videolan.org.


More information about the libdvdnav-devel mailing list