Skip to content

Commit 0353a30

Browse files
Merge pull request #670 from elcorto/feature-fix-tem-load-py3-13
TEM: use ld -z noexecstack
2 parents c3655fa + 7e3af8c commit 0353a30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)