[MPlayer-cvslog] r38666 - trunk/configure

komh subversion at mplayerhq.hu
Mon Oct 7 15:24:56 EEST 2024


Author: komh
Date: Mon Oct  7 15:24:56 2024
New Revision: 38666

Log:
configure: remove -Zomf from flags when checking extern symbol prefix on OS/2

OS/2 nm does work only with aout format. If -Zomf is given, gcc generates
OMF object file not aout object file. As a result, nm fails to detect
extern symbol prefix.

This allows users to pass -Zomf to configure via --extra-cflags and/or
--extra-ldfalgs.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sat Oct  5 22:07:25 2024	(r38665)
+++ trunk/configure	Mon Oct  7 15:24:56 2024	(r38666)
@@ -1699,6 +1699,15 @@ msvc_filter_flags() {
   done
 }
 
+os2_aout_filter_flags() {
+  for f; do
+    case $f in
+      -Zomf) ;;
+      *) echo -n $f" " ;;
+    esac
+  done
+}
+
 AR_O='$@'
 CC_O='-o $@'
 CC_LINK_O='-o $@'
@@ -2920,7 +2929,11 @@ echocheck "extern symbol prefix"
 cat > $TMPC << EOF
 int ff_extern;
 EOF
+# OS/2 nm does work only with aout format. Remove -Zomf from flags.
+os2 &&
+  { saved_filter_flags=$filter_flags; filter_flags=os2_aout_filter_flags; }
 cc_check -c || die "Symbol mangling check failed."
+os2 && filter_flags=$saved_filter_flags
 sym=$($_nm -P -g $TMPEXE | grep ff_extern)
 extern_prefix=${sym%%ff_extern*}
 def_extern_asm="#define EXTERN_ASM $extern_prefix"


More information about the MPlayer-cvslog mailing list