diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-11-03 20:04:10 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-03 20:04:10 +0000 |
commit | 75388c749b014f65a63eaabc0401607d3570b87e (patch) | |
tree | 7212d5f51104bcee2b55a1282c00899d53e562f2 /configure | |
parent | 3d0ef6dd52b7db3375249978113847d5dea361a7 (diff) | |
download | ffmpeg-75388c749b014f65a63eaabc0401607d3570b87e.tar.gz |
2nd attempt at OS/X shared/mdynamicnopic fix by ("Steven M. Schultz" <sms at 2BSD dot COM>)
Originally committed as revision 2475 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 23 |
1 files changed, 18 insertions, 5 deletions
@@ -424,6 +424,7 @@ if test $mmx = "default"; then fi #Darwin CC versions +needmdynamicnopic="no" if test $targetos = Darwin; then if test -n "`$cc -v 2>&1 | grep xlc`"; then CFLAGS="-qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto" @@ -433,14 +434,17 @@ if test $targetos = Darwin; then *2.95*) CFLAGS="-no-cpp-precomp -pipe -fomit-frame-pointer" ;; - *3.1*) + *3.*) CFLAGS="-no-cpp-precomp -pipe -fomit-frame-pointer -force_cpusubtype_ALL -Wno-sign-compare" - ;; - *3.3*) - CFLAGS="-no-cpp-precomp -pipe -fomit-frame-pointer -mdynamic-no-pic -force_cpusubtype_ALL -Wno-sign-compare" + if test "$lshared" = no; then + needmdynamicnopic="yes" + fi ;; *) - CFLAGS="-no-cpp-precomp -pipe -fomit-frame-pointer -mdynamic-no-pic" + CFLAGS="-no-cpp-precomp -pipe -fomit-frame-pointer" + if test "$lshared" = no; then + needmdynamicnopic="yes" + fi ;; esac fi @@ -916,7 +920,16 @@ echo "CC=$cc" >> config.mak echo "AR=$ar" >> config.mak echo "RANLIB=$ranlib" >> config.mak echo "STRIP=$strip" >> config.mak + +# SHCFLAGS is a copy of CFLAGS without -mdynamic-no-pic. Used when building +# shared modules on OS/X (vhook/Makefile). +SHCFLAGS=$CFLAGS +if test "$needmdynamicnopic" = yes; then + CFLAGS="$CFLAGS -mdynamic-no-pic" +fi + echo "OPTFLAGS=$CFLAGS" >> config.mak +echo "SHCFLAGS=$SHCFLAGS">>config.mak echo "LDFLAGS=$LDFLAGS" >> config.mak echo "FFSLDFLAGS=$FFSLDFLAGS" >> config.mak echo "SHFLAGS=$SHFLAGS" >> config.mak |