Web lists-archives.com

[MPlayer-dev-eng] [PATCH] configure: linking against static libraries is preferred on OS/2




---
 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"
+
 # DO NOT ADD ANY TESTS THAT USE LINKER FLAGS HERE (like cc_check).
 # Read dvdnav comment above.
 
-- 
1.8.5.2

_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng