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

KO Myung-Hun komh78 at gmail.com
Mon Jan 29 05:38:47 CET 2018


Ping ?

KO Myung-Hun wrote:
> 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([

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.os2.kr/



More information about the libdvdnav-devel mailing list