summaryrefslogtreecommitdiff
path: root/scripts/ac_build_iraf_pkg
diff options
context:
space:
mode:
authorJames Turner <jturner@gemini.edu>2016-10-19 19:31:38 -0400
committerJames Turner <jturner@gemini.edu>2016-10-19 19:31:38 -0400
commit65c2b11cf0ea44e5c09db6fba4d5629426896150 (patch)
tree989adac6a3dee38f59746b35e0b10fdffc2897d6 /scripts/ac_build_iraf_pkg
parentb498bad36b33764d0a7e098c3f47ef3a295030fc (diff)
downloadastroconda-iraf-helpers-65c2b11cf0ea44e5c09db6fba4d5629426896150.tar.gz
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!
Diffstat (limited to 'scripts/ac_build_iraf_pkg')
-rwxr-xr-xscripts/ac_build_iraf_pkg5
1 files 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}"