diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d86f6c24..e2521e785 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -245,11 +245,11 @@ target_include_directories(vir INTERFACE ${vir-simd_SOURCE_DIR}/) # FFTW3 is build 2 times for float and double precisions SET(FFTW_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/fftw) if (EMSCRIPTEN) - SET(FFTW_CFLAGS "${CFLAGS} -fPIE -w") + SET(FFTW_CFLAGS "${CFLAGS} -fPIC -w") SET(FFTW_CONFIG cd ${FFTW_PREFIX}/src/ && emconfigure ./configure --enable-silent-rules --quiet --disable-fortran --prefix=${FFTW_PREFIX}/install) SET(FFTW_BUILD emmake make -j CFLAGS=${FFTW_CFLAGS} --silent V=0 && emmake make install --silent V=0 && emmake make clean --silent V=0) else () - SET(FFTW_CFLAGS "${CFLAGS} -fPIE -w -O3 -march=native -mtune=native") + SET(FFTW_CFLAGS "${CFLAGS} -fPIC -w -O3 -march=native -mtune=native") SET(FFTW_CONFIG ${FFTW_PREFIX}/src/configure --enable-silent-rules --quiet --disable-fortran --prefix=${FFTW_PREFIX}/install) SET(FFTW_BUILD make -j CFLAGS=${FFTW_CFLAGS} --silent V=0 && make install --silent V=0 && make clean --silent V=0) endif ()