| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 ## | 2 ## |
| 3 ## configure.sh | 3 ## configure.sh |
| 4 ## | 4 ## |
| 5 ## This script is sourced by the main configure script and contains | 5 ## This script is sourced by the main configure script and contains |
| 6 ## utility functions and other common bits that aren't strictly libvpx | 6 ## utility functions and other common bits that aren't strictly libvpx |
| 7 ## related. | 7 ## related. |
| 8 ## | 8 ## |
| 9 ## This build system is based in part on the FFmpeg configure script. | 9 ## This build system is based in part on the FFmpeg configure script. |
| 10 ## | 10 ## |
| (...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 | 1192 |
| 1193 if enabled optimizations; then | 1193 if enabled optimizations; then |
| 1194 if enabled rvct; then | 1194 if enabled rvct; then |
| 1195 enabled small && check_add_cflags -Ospace || check_add_cflags -Otime | 1195 enabled small && check_add_cflags -Ospace || check_add_cflags -Otime |
| 1196 else | 1196 else |
| 1197 enabled small && check_add_cflags -O2 || check_add_cflags -O3 | 1197 enabled small && check_add_cflags -O2 || check_add_cflags -O3 |
| 1198 fi | 1198 fi |
| 1199 fi | 1199 fi |
| 1200 | 1200 |
| 1201 # default use_x86inc to yes if pic is no or 64bit or we are not on darwin | 1201 # default use_x86inc to yes if pic is no or 64bit or we are not on darwin |
| 1202 echo " checking here for x86inc \"${tgt_isa}\" \"$pic\" " | 1202 if [ ${tgt_isa} = x86_64 -o ! "$pic" = "yes" -o \ |
| 1203 if [ ${tgt_isa} = x86_64 -o ! "$pic" = "yes" -o "${tgt_os#darwin}" = "${tgt_
os}" ]; then | 1203 "${tgt_os#darwin}" = "${tgt_os}" ]; then |
| 1204 soft_enable use_x86inc | 1204 soft_enable use_x86inc |
| 1205 fi | 1205 fi |
| 1206 | 1206 |
| 1207 # Position Independent Code (PIC) support, for building relocatable | 1207 # Position Independent Code (PIC) support, for building relocatable |
| 1208 # shared objects | 1208 # shared objects |
| 1209 enabled gcc && enabled pic && check_add_cflags -fPIC | 1209 enabled gcc && enabled pic && check_add_cflags -fPIC |
| 1210 | 1210 |
| 1211 # Work around longjmp interception on glibc >= 2.11, to improve binary | 1211 # Work around longjmp interception on glibc >= 2.11, to improve binary |
| 1212 # compatibility. See http://code.google.com/p/webm/issues/detail?id=166 | 1212 # compatibility. See http://code.google.com/p/webm/issues/detail?id=166 |
| 1213 enabled linux && check_add_cflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 | 1213 enabled linux && check_add_cflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 # Prepare the PWD for building. | 1340 # Prepare the PWD for building. |
| 1341 for f in ${OOT_INSTALLS}; do | 1341 for f in ${OOT_INSTALLS}; do |
| 1342 install -D ${source_path}/$f $f | 1342 install -D ${source_path}/$f $f |
| 1343 done | 1343 done |
| 1344 fi | 1344 fi |
| 1345 cp ${source_path}/build/make/Makefile . | 1345 cp ${source_path}/build/make/Makefile . |
| 1346 | 1346 |
| 1347 clean_temp_files | 1347 clean_temp_files |
| 1348 true | 1348 true |
| 1349 } | 1349 } |
| OLD | NEW |