summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-28 17:33:08 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-28 17:33:08 +0000
commit9c40dd44ab8fe5e2196743cc358e8258ead9c713 (patch)
tree04b9050c3afe661a639ce30226fa77b721867651 /configure
parente9aed9cf905aa8e4f2db9de6eec31e3a96b30fbd (diff)
downloadmpv-9c40dd44ab8fe5e2196743cc358e8258ead9c713.tar.bz2
mpv-9c40dd44ab8fe5e2196743cc358e8258ead9c713.tar.xz
Rework OS/2 configuration with respect to linker output formats.
Since nm only supports a.out on OS/2, the linker options to specify a different output format need to be added after the check using nm. based on a patch by KO Myung-Hun, komh chollian net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27363 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 8 insertions, 8 deletions
diff --git a/configure b/configure
index 96cbe83604..44cd4b2606 100755
--- a/configure
+++ b/configure
@@ -1409,9 +1409,6 @@ if os2 ; then
_exesuf=".exe"
_getch=getch2-os2.c
_need_shmem=no
- _ar="emxomfar -p256"
- _ranlib="echo ignoring ranlib"
- _ld_extra="$_ld_extra -Zomf -Zstack 16384 -Zbin-files -Zargs-wild -lmmpm2"
fi
for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do
@@ -7630,6 +7627,14 @@ echores "$_dvdnav"
#############################################################################
+
+# On OS/2 nm supports only a.out. So the -Zomf compiler option to generate
+# the OMF format needs to come after the 'extern symbol prefix' check, which
+# uses nm.
+if os2 ; then
+ _ld_extra="$_ld_extra -Zomf -Zstack 16384 -Zbin-files -Zargs-wild"
+fi
+
# linker paths should be the same for mencoder and mplayer
_ld_tmp=""
for I in $_libs_mplayer ; do
@@ -7663,10 +7668,6 @@ fi
if cygwin ; then
CFLAGS="$CFLAGS -D__CYGWIN__"
fi
-if os2 ; then
- CFLAGS="$CFLAGS -Zomf"
- ASFLAGS="$ASFLAGS -Zomf"
-fi
# 64 bit file offsets?
if test "$_largefiles" = yes || freebsd ; then
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
@@ -7733,7 +7734,6 @@ CFLAG_STACKREALIGN = $_stackrealign
LIBDVDCSS_DVDREAD_FLAGS = $_libdvdcss_dvdread_flags
CFLAG_DHAHELPER = $cflag_dhahelper
CFLAG_SVGALIB_HELPER = $cflag_svgalib_helper
-ASFLAGS = $ASFLAGS
EXTRALIBS = $_extra_libs
EXTRA_LIB = $_ld_extra $_ld_static $_ld_lm