summaryrefslogtreecommitdiff
path: root/scripts/ac_build_iraf_pkg
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ac_build_iraf_pkg')
-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}"