summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJames Turner <jturner@gemini.edu>2017-07-20 11:56:39 -0400
committerJames Turner <jturner@gemini.edu>2017-07-20 11:56:39 -0400
commit55f6f472a9e7dc4099d6a3ae3e2ae6daa2834c81 (patch)
treee59f2fa8759de8515e703b13e30a71700dfd483e /scripts
parent19236000e3688a8dc93a898a38860dbc95c7e556 (diff)
downloadastroconda-iraf-helpers-55f6f472a9e7dc4099d6a3ae3e2ae6daa2834c81.tar.gz
Remove any old .a or .o files before building IRAF packages, to avoid linking problems.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ac_build_iraf_pkg3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/ac_build_iraf_pkg b/scripts/ac_build_iraf_pkg
index 0428078..bff8017 100755
--- a/scripts/ac_build_iraf_pkg
+++ b/scripts/ac_build_iraf_pkg
@@ -97,6 +97,9 @@ if [ ! -e bin ]; then
ln -s "bin.$IRAFARCH" bin
fi
+# Remove any old libs that might cause linking complications (& links to them):
+find . \( -name ".a" -o -name "*.o" \) -exec rm -f {} \;
+
# 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}"