[MPlayer-dev-eng] [PATCH] EXTERN_PREFIX fix for OS/2
- Date: Sat, 22 Mar 2008 20:14:38 +0900
- From: KO Myung-Hun <komh@xxxxxxxxxxxx>
- Subject: [MPlayer-dev-eng] [PATCH] EXTERN_PREFIX fix for OS/2
Hi/2.
This patch fix the EXTERN_PREFIX for OS/2.
On OS/2, 'nm' does not work with the executable, because it is OMF
format and 'nm' does not support OMF, yet. So I worked around it to fix
the problem.
--
KO Myung-Hun
Using Mozilla SeaMonkey 1.1.8
Under OS/2 Warp 4 for Korean with FixPak #15
On AMD ThunderBird 1 GHz with 512 MB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
Index: configure
===================================================================
--- configure (revision 26268)
+++ configure (working copy)
@@ -2300,9 +2308,13 @@
cat > $TMPC << EOF
int ff_extern;
EOF
+if os2 ; then
+ extern_prefix="_"
+else
cc_check -c || die "Symbol mangling check failed."
sym=$(nm -P -g $TMPEXE)
extern_prefix=${sym%%ff_extern*}
+fi
_def_extern_prefix="#define EXTERN_PREFIX \"$extern_prefix\""
echores $extern_prefix
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng