[MPlayer-dev-eng] [PATCH] configure: linking against static libraries is preferred on OS/2
KO Myung-Hun
komh78 at gmail.com
Fri Dec 5 06:38:05 CET 2014
KO Myung-Hun wrote:
> Hi/2.
>
> Reimar Döffinger wrote:
>> On Mon, Dec 01, 2014 at 12:15:21PM +0900, KO Myung-Hun wrote:
>>> ---
>>> configure | 5 ++++-
>>> 1 file changed, 4 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/configure b/configure
>>> index fd2b115..81a2e18 100755
>>> --- a/configure
>>> +++ b/configure
>>> @@ -4338,7 +4338,7 @@ fi #if linux
>>> echocheck "pkg-config"
>>> _pkg_config=pkg-config
>>> if $($_pkg_config --version > /dev/null 2>&1); then
>>> - if test "$ld_static"; then
>>> + if test "$ld_static" || os2 ; then
>>> _pkg_config="$_pkg_config --static"
>>> fi
>>> echores "yes"
>>> @@ -8063,6 +8063,9 @@ echores "$_dvdnav"
>>>
>>> extra_ldflags="$extra_ldflags $libm"
>>>
>>> +# Linking against static libraries is preferred on OS/2
>>> +os2 && extra_ldflags="-Wl,-static $extra_ldflags"
>>
>> Why, what is special about OS/2 that it should default to static?
>
> Without this, OS/2 ld tries to link against DLLs. Then DLL hells wait
> for us. I don't want to fall into those hells.
>
>> Especially compared to e.g. Windows (where people for distribution
>> will basically always link statically, too).
>
> Even if they have both static and shared libraries ? And without any
> additional flags ?
>
>
No more comments ?
--
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 MPlayer-dev-eng
mailing list