diff -r c8e43e55f2ce configure --- a/configure Wed Feb 03 22:05:46 2016 -0600 +++ b/configure Thu Feb 04 17:02:19 2016 +0200 @@ -6001,11 +6001,11 @@ # debug builds. OPT="-g -O0 -Wall $STRICT_PROTO" else - OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" + OPT="-g $WRAP -O3 -Wall $STRICT_PROTO -fdata-sections -ffunction-sections -Wl,--gc-sections" fi ;; *) - OPT="-O3 -Wall $STRICT_PROTO" + OPT="-O3 -Wall $STRICT_PROTO -fdata-sections -ffunction-sections -Wl,--gc-sections" ;; esac case $ac_sys_system in diff -r c8e43e55f2ce configure.ac --- a/configure.ac Wed Feb 03 22:05:46 2016 -0600 +++ b/configure.ac Thu Feb 04 17:02:19 2016 +0200 @@ -1091,11 +1091,11 @@ # debug builds. OPT="-g -O0 -Wall $STRICT_PROTO" else - OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" + OPT="-g $WRAP -O3 -Wall $STRICT_PROTO -fdata-sections -ffunction-sections -Wl,--gc-sections" fi ;; *) - OPT="-O3 -Wall $STRICT_PROTO" + OPT="-O3 -Wall $STRICT_PROTO -fdata-sections -ffunction-sections -Wl,--gc-sections" ;; esac case $ac_sys_system in