Unverified Commit 2f09a7af authored by Alex Rothberg's avatar Alex Rothberg Committed by GitHub
Browse files

save and restore CFLAGS

parent 5429cca8
......@@ -395,6 +395,10 @@ function build_fftw_case {
function build_fftw {
echo 'Building fftw'
# Save off current CFLAGS
local old_cflags=$CFLAGS
# Taken from: https://github.com/conda-forge/fftw-feedstock/blob/master/recipe/build.sh
export CFLAGS="-O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math"
......@@ -427,6 +431,6 @@ function build_fftw {
ls -l $C_INCLUDE_PATH/fftw3*
ls -l $STATIC_FFTW_DIR/libfftw3*
# Clear CFLAGS from fftw build
export CFLAGS=""
# restore CFLAGS
export CFLAGS=$old_cflags
}
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