From: Jon Rumsey Date: Mon, 28 Oct 2024 17:53:01 +0000 (+0000) Subject: OS400: don't delete source files when building with debug X-Git-Tag: curl-8_11_0~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b57e9c8f9bfaa26635393d2bbe2d12e8d47e22b3;p=thirdparty%2Fcurl.git OS400: don't delete source files when building with debug Debugger not able to work against curl *SRVPGM when using temporary source files. Fixes #15445 Closes #15446 --- diff --git a/packages/OS400/initscript.sh b/packages/OS400/initscript.sh index 2f6d78c245..69a354ab0d 100755 --- a/packages/OS400/initscript.sh +++ b/packages/OS400/initscript.sh @@ -189,8 +189,8 @@ make_module() echo "#pragma convert(819)" echo "#line 1" cat "${2}" - } > __tmpsrcf.c - CMD="CRTCMOD MODULE(${TARGETLIB}/${1}) SRCSTMF('__tmpsrcf.c')" + } > "${1}"__819.c + CMD="CRTCMOD MODULE(${TARGETLIB}/${1}) SRCSTMF('${1}__819.c')" CMD="${CMD} SYSIFCOPT(*IFS64IO *ASYNCSIGNAL)" # CMD="${CMD} OPTION(*INCDIRFIRST *SHOWINC *SHOWSYS)" CMD="${CMD} OPTION(*INCDIRFIRST)" @@ -228,7 +228,9 @@ make_module() fi CLcommand "${CMD}" - rm -f __tmpsrcf.c + if [ "${DEBUG}" = "*NONE" ] + then rm -f "${1}"__819.c + fi # shellcheck disable=SC2034 LINK=YES }