From 65c2b11cf0ea44e5c09db6fba4d5629426896150 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 19 Oct 2016 20:31:38 -0300 Subject: Avoid trailing space in XC_LFLAGS when not already set, since this gets passed to gcc as a non-existent filename, causing linking to fail! --- scripts/ac_build_iraf_pkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/ac_build_iraf_pkg b/scripts/ac_build_iraf_pkg index d6a92ce..91d6d0f 100755 --- a/scripts/ac_build_iraf_pkg +++ b/scripts/ac_build_iraf_pkg @@ -95,8 +95,9 @@ if [ -L bin ]; then # apart from being safer, there is a bin/ dir in mscdb ln -s "bin.$IRAFARCH" bin fi -# Enable compilation with debugging symbols (from the STScI IRAF "make_all"): -export XC_LFLAGS="-g $XC_LFLAGS" +# Enable compilation with debugging symbols (from the STScI IRAF "make_all"; +# avoiding trailing space, which gcc fails on as a non-existent filename!): +export XC_LFLAGS="-g${XC_LFLAGS:+ $XC_LFLAGS}" # Compile the package source, either as specified by the recipe or as usual: file_path="${RECIPE_DIR}/${pkg_mkpkg_cmd}" -- cgit