Skip to content

Commit

Permalink
Adds optimization flags to shared library build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
corydolphin committed Apr 8, 2020
1 parent 0f99805 commit 6a2e2ce
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions recipe/gcc_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,7 @@ _common_configure_args+=(--enable-loadable-sqlite-extensions)
_common_configure_args+=(--with-tcltk-includes="-I${PREFIX}/include")
_common_configure_args+=("--with-tcltk-libs=-L${PREFIX}/lib -ltcl8.6 -ltk8.6")

mkdir -p ${_buildd_shared}
pushd ${_buildd_shared}
${SRC_DIR}/configure "${_common_configure_args[@]}" \
"${_dbg_opts[@]}" \
--enable-shared
popd

# Add more optimization flags for the static Python interpreter:
# Add more optimization flags
declare -a _extra_opts
if [[ ${_OPTIMIZED} == yes ]]; then
_extra_opts+=(--enable-optimizations)
Expand All @@ -205,6 +198,15 @@ else
_MAKE_TARGET=
fi


mkdir -p ${_buildd_shared}
pushd ${_buildd_shared}
${SRC_DIR}/configure "${_common_configure_args[@]}" \
"${_extra_opts[@]}" \
"${_dbg_opts[@]}" \
--enable-shared
popd

mkdir -p ${_buildd_static}
pushd ${_buildd_static}
${SRC_DIR}/configure "${_common_configure_args[@]}" \
Expand Down

0 comments on commit 6a2e2ce

Please sign in to comment.