summaryrefslogtreecommitdiff
path: root/scripts/ac_build_iraf_pkg
diff options
context:
space:
mode:
authorjehturner <jturner@gemini.edu>2016-10-21 14:08:46 -0400
committerGitHub <noreply@github.com>2016-10-21 14:08:46 -0400
commitdfc0b0c365e132a8c39c92f0fd17b1a4cf478fb1 (patch)
treeba02b0e2871b795d5740b0a63b78942d15d6d3d8 /scripts/ac_build_iraf_pkg
parent70e4227f580a7464f413d8ac7242d90af8004a68 (diff)
parent46e0e458820ad0876c8d045109b20ce2171756c0 (diff)
downloadastroconda-iraf-helpers-dfc0b0c365e132a8c39c92f0fd17b1a4cf478fb1.tar.gz
Merge pull request #1 from jehturner/master
IRAF package build & install compatibility fixes for Linux & old OS python versions, package uninstallation support & an install robustness improvement.
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}"