From 55f6f472a9e7dc4099d6a3ae3e2ae6daa2834c81 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 20 Jul 2017 11:56:39 -0400 Subject: Remove any old .a or .o files before building IRAF packages, to avoid linking problems. --- scripts/ac_build_iraf_pkg | 3 +++ 1 file changed, 3 insertions(+) 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}" -- cgit