 fi
 unset   c ccand cccand
 [[ -n "$LANG" ]] || LANG='C'
-LDFLAGS="$arch_flags -O4"
-
-CFLAGS="$arch_flags -O3"
+LDFLAGS="$arch_flags $opt_flags"
+
+CFLAGS="$arch_flags $opt_flags"
 if [[ $otp_vsn_major -lt 17 ]]
 then
     CFLAGS+=' -Wno-deprecated-declarations'

    linux )
        ccands='icc gcc cc'
        cccands='g++ gcc c++'
        config_os='--enable-64bit'
        ;;
    freebsd )
        ccands='icc clang37 /usr/bin/cc gcc cc'
        cccands='/usr/bin/c++ g++ c++'
        config_os='--enable-64bit'
        ;;
    * )
        ccands='cc gcc'
        cccands='c++ g++'
        config_os='--enable-64bit'
        ;;
esac
for c in $ccands

PATH="$ERL_TOP/bin:$PATH"
export  ERL_TOP PATH

unset   V MAKEFLAGS

for hipe in $hipe_modes
do
    if $hipe
