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

Diego Biurrun diego at biurrun.de
Wed Jan 18 13:19:22 CET 2017


On Wed, Jan 18, 2017 at 03:43:07PM +0900, KO Myung-Hun wrote:
> pthread check fails due to -no-undefined of LDFLAGS. gcc4 treats
> unknown flags as an error unlike gcc3.
> --- 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"])

So how does moving this check around fix anything?

Diego


More information about the libdvdnav-devel mailing list