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

KO Myung-Hun komh78 at gmail.com
Tue Jan 24 05:32:13 EET 2017



Rafaël Carré wrote:
> On 01/18/2017 07:43 AM, KO Myung-Hun wrote:
>> pthread check fails due to -no-undefined of LDFLAGS. gcc4 treats
>> unknown flags as an error unlike gcc3.
> 
> -no-undefined is a libtool flags, it should not be passed as-is to gcc
> 
> Here is what I get with gcc 6.2:
> 
> % gcc -no-undefined
> gcc: error: unrecognized command line option ‘-no-undefined’; did you
> mean ‘-Wno-undef’?
> 
> 
> What is the error you are getting?

With gcc335 which I used before:

# gcc -no-undefined test.c && echo yes || echo no
gcc: unrecognized option `-no-undefined'
yes


With gcc492 which I'm using nowadays:

# gcc -no-undefined test.c && echo yes || echo no
gcc: error: unrecognized command line option '-no-undefined'
no

gcc335 ignores unrecognized options, whereas gcc492 treats them as errors.

-no-undefined is a libtool flag. However, when building, -no-undefined
is passed to libtool not gcc, and libtool processes it first. As a
result, -no-undefined is not passed to gcc.


-- 
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.ecomstation.co.kr



More information about the DVDnav-discuss mailing list