diff options
author | James Turner <jturner@gemini.edu> | 2017-07-20 11:56:39 -0400 |
---|---|---|
committer | James Turner <jturner@gemini.edu> | 2017-07-20 11:56:39 -0400 |
commit | 55f6f472a9e7dc4099d6a3ae3e2ae6daa2834c81 (patch) | |
tree | e59f2fa8759de8515e703b13e30a71700dfd483e /scripts | |
parent | 19236000e3688a8dc93a898a38860dbc95c7e556 (diff) | |
download | astroconda-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-x | scripts/ac_build_iraf_pkg | 3 |
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}" |