aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-03-18 02:01:20 +0000
committerMåns Rullgård <mans@mansr.com>2008-03-18 02:01:20 +0000
commitb4d96ba2a838d26e469887dfb1c6088005d09f0b (patch)
tree4ea3c641829bd0307b48b27ff717b80b1546b4ab /configure
parent6fcc9af0123abb25b82c43ef631e12069853d725 (diff)
downloadffmpeg-b4d96ba2a838d26e469887dfb1c6088005d09f0b.tar.gz
check for prefix on extern symbols in configure
Originally committed as revision 12484 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 8c241cfcf1..16860d2514 100755
--- a/configure
+++ b/configure
@@ -1491,6 +1491,12 @@ if test "$?" != 0; then
die "C compiler test failed."
fi
+check_cc <<EOF || die "Symbol mangling check failed."
+int ff_extern;
+EOF
+sym=$(nm -P $TMPO)
+extern_prefix=${sym%%ff_extern*}
+
check_asm inline_asm '""'
if enabled x86; then
@@ -2070,6 +2076,7 @@ enabled asmalign_pot &&
printf '#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\\n\\t"\n' >> $TMPH ||
printf '#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\\n\\t"\n' >> $TMPH
+echo "#define EXTERN_PREFIX \"${extern_prefix}\"" >> $TMPH
echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH