Commit c76a07f2 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix incorrect library directory.

parent 97370144
......@@ -48,7 +48,7 @@ done
cdi_LIBS="${netcdf_fortran_LIBS[@]} -leccodes -lssl -lcrypto"
FCFLAGS="-g -O2 -Wc=$(command -v gcc) -Wc,-pipe -Wl,-pipe -Wc,-march=core-avx2 -Wc,-mtune=core-avx2 -Wl,-Wl,,--as-needed $($nf_config --fflags)"
CFLAGS="-g -O2 -march=core-avx2 -mtune=core-avx2 -pipe -Wl,--as-needed"
cdi_FCFLAGS="${FCFLAGS} -Wl,-Wl,,-rpath,,${eccodes_root}/lib ${netcdf_fortran_LIBS_FC[*]}"
cdi_FCFLAGS="${FCFLAGS} -Wl,-Wl,,-rpath,,${eccodes_root}/lib64 ${netcdf_fortran_LIBS_FC[*]}"
if [[ ${libtype-shared} = static ]]; then
# only a statically built ppm can link to the static netcdf_fortran
# currently used
......@@ -66,9 +66,9 @@ ${scriptdir}build-cdi-pio-stack.sh \
CPPFLAGS="-DNODEBUG $($nf_config --cflags) -I${eccodes_root}/include" \
CFLAGS="$CFLAGS" \
FCFLAGS="$FCFLAGS" \
LDFLAGS="-L${eccodes_root}/lib" \
LDFLAGS="-L${eccodes_root}/lib64" \
ppm_configure="" \
cdi_configure="'LIBS=$cdi_LIBS' 'FCFLAGS=$cdi_FCFLAGS' 'FFLAGS=$cdi_FCFLAGS' 'CFLAGS=${CFLAGS} -Wl,-rpath,${eccodes_root}/lib ${netcdf_fortran_LIBS_CC[*]}'" \
cdi_configure="'LIBS=$cdi_LIBS' 'FCFLAGS=$cdi_FCFLAGS' 'FFLAGS=$cdi_FCFLAGS' 'CFLAGS=${CFLAGS} -Wl,-rpath,${eccodes_root}/lib64 ${netcdf_fortran_LIBS_CC[*]}'" \
SCRATCH="$SCRATCH" \
--use-from-system libaec \
--use-from-system hdf5 \
......
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