Skip to content

Commit 4114243

Browse files
committed
Re-reading the trial record from just now showed another imperfection re (not) linking -- now fixed also. Retested all commands tried as part of this PR -- all good
1 parent 05d6100 commit 4114243

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/grbcxx.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ if [[ "${LINK}" == "dynamic" ]]; then
146146
elif [[ "${LINK}" == "static" ]]; then
147147
LIB="'${UTILS_LIBRARY_DIR}/lib${UTILS_LIBRARY_NAME}.a' '${LIBRARY_DIRS[${BACKENDID}]}/lib${BACKEND_LIBRARY_OUTPUT_NAME}.a'"
148148
fi
149-
LFLAGS="${LIB} ${BACKENDLFLAGS[${BACKENDID}]} @COMMON_LFLAGS_POST_SPACED@"
149+
if [[ "${LINK}" == "no" ]]; then
150+
LFLAGS=
151+
else
152+
LFLAGS="${LIB} ${BACKENDLFLAGS[${BACKENDID}]} @COMMON_LFLAGS_POST_SPACED@"
153+
fi
150154

151155
CMD="${COMPILER} -std=${CXXSTD} -I'${INCLUDEDIR}' ${BACKENDCFLAGS[${BACKENDID}]} ${ARGS[@]} "$@" ${LFLAGS}"
152156

0 commit comments

Comments
 (0)