Commit f9b2ca5b authored by John Koleszar's avatar John Koleszar
Browse files

configure: add --enable-small

Build with -O2 rather than -O3, to dissuade the compiler from inlining
so much. See issue #1.

Change-Id: Iacb8ddb59125d3f01c5fea846b45a1c004c9aee0
parent 329aaaf4
...@@ -880,9 +880,9 @@ process_common_toolchain() { ...@@ -880,9 +880,9 @@ process_common_toolchain() {
enabled gcov && enabled gcov &&
check_add_cflags -fprofile-arcs -ftest-coverage && check_add_cflags -fprofile-arcs -ftest-coverage &&
check_add_ldflags -fprofile-arcs -ftest-coverage check_add_ldflags -fprofile-arcs -ftest-coverage
enabled optimizations && check_add_cflags -O3 if enabled optimizations; then
if enabled rvct; then enabled rvct && check_add_cflags -Otime
enabled optimizations && check_add_cflags -Otime enabled small && check_add_cflags -O2 || check_add_cflags -O3
fi fi
# Position Independant Code (PIC) support, for building relocatable # Position Independant Code (PIC) support, for building relocatable
......
...@@ -38,6 +38,7 @@ Advanced options: ...@@ -38,6 +38,7 @@ Advanced options:
${toggle_realtime_only} enable this option while building for real-time encoding ${toggle_realtime_only} enable this option while building for real-time encoding
${toggle_runtime_cpu_detect} runtime cpu detection ${toggle_runtime_cpu_detect} runtime cpu detection
${toggle_shared} shared library support ${toggle_shared} shared library support
${toggle_small} favor smaller size over speed
${toggle_arm_asm_detok} assembly version of the detokenizer (ARM platforms only) ${toggle_arm_asm_detok} assembly version of the detokenizer (ARM platforms only)
Codecs: Codecs:
...@@ -244,6 +245,7 @@ CONFIG_LIST=" ...@@ -244,6 +245,7 @@ CONFIG_LIST="
spatial_resampling spatial_resampling
realtime_only realtime_only
shared shared
small
arm_asm_detok arm_asm_detok
" "
CMDLINE_SELECT=" CMDLINE_SELECT="
...@@ -281,6 +283,7 @@ CMDLINE_SELECT=" ...@@ -281,6 +283,7 @@ CMDLINE_SELECT="
spatial_resampling spatial_resampling
realtime_only realtime_only
shared shared
small
arm_asm_detok arm_asm_detok
" "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment