Skip to content

Commit 7e3af8c

Browse files
committed
TEM: use ld -z noexecstack (mala-project#667)
1 parent 2ca9b6e commit 7e3af8c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

external_modules/total_energy_module/build_total_energy_module.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ cp $root_dir/XClib/xc_lib.a $here/libs/libxclib.a
7171
# seems.
7272
ar rcs $tmp_lib_dir/liballobjs.a $pwobjs $utilobjs $modobjs
7373

74+
# LDFLAGS: "-z noexecstack" because of
75+
# https://github.com/mala-project/mala/issues/667
7476
FC="$f_compiler" \
7577
CC="$c_compiler" \
7678
FFLAGS="-I$tmp_lib_dir -I$pw_src_path $qe_inc_dirs" \
77-
LDFLAGS="-L$tmp_lib_dir -L$pw_src_path $qe_lib_dirs" \
79+
LDFLAGS="-L$tmp_lib_dir -L$pw_src_path $qe_lib_dirs -z noexecstack" \
7880
python3 -m numpy.f2py \
7981
--backend meson \
8082
--dep mpi \

0 commit comments

Comments
 (0)