Skip to content

Commit 40a7129

Browse files
authored
[ATfL] Restore obligatory linking with -ldl. Apparently this is needed for RHEL8 (#280)
In my previous commit I've misread the reason why those two lines were introduced. Now we cannot build for RHEL8 and this patch restores those two lines.
1 parent fff6d18 commit 40a7129

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arm-software/linux/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ shared_lib_build() {
380380
cp -d ${ATFL_DIR}.libs/lib/libflang_rt* \
381381
"${ATFL_DIR}/lib/${ATFL_TARGET_TRIPLE}"
382382
rm -r "${ATFL_DIR}.libs"
383+
echo '-L<CFGDIR>/../runtimes/runtimes-bins/openmp/runtime/src $-Wl,--push-state $-Wl,--as-needed $-lomp $-ldl $-Wl,--pop-state' >bin/clang.cfg
384+
echo '-L<CFGDIR>/../runtimes/runtimes-bins/openmp/runtime/src $-Wl,--push-state $-Wl,--as-needed $-lomp $-ldl $-Wl,--pop-state' >bin/clang++.cfg
383385
run_command ninja ${NINJA_ARGS} check-all | tee -a "${LOGS_DIR}/shared_lib.txt"
384386
}
385387

0 commit comments

Comments
 (0)