diff options
author | James Turner <jturner@gemini.edu> | 2016-10-19 19:31:38 -0400 |
---|---|---|
committer | James Turner <jturner@gemini.edu> | 2016-10-19 19:31:38 -0400 |
commit | 65c2b11cf0ea44e5c09db6fba4d5629426896150 (patch) | |
tree | 989adac6a3dee38f59746b35e0b10fdffc2897d6 /scripts/ac_build_iraf_pkg | |
parent | b498bad36b33764d0a7e098c3f47ef3a295030fc (diff) | |
download | astroconda-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-x | scripts/ac_build_iraf_pkg | 5 |
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}" |