diff options
author | 2013-01-05 17:12:36 +0100 | |
---|---|---|
committer | 2013-01-12 12:16:26 -0500 | |
commit | 1487cdb45f497c371ceac411091fb0adb01e6ca2 (patch) | |
tree | e2a513facf7df8e6858265f6f9ac1503aa8faf96 | |
parent | make aware of EPREFIX offset prefix (diff) | |
download | gcc-config-1487cdb45f497c371ceac411091fb0adb01e6ca2.tar.gz gcc-config-1487cdb45f497c371ceac411091fb0adb01e6ca2.tar.bz2 gcc-config-1487cdb45f497c371ceac411091fb0adb01e6ca2.zip |
gcc-config: cleanup old Darwin stuff from /lib too
Cleanup lib/libgcc_s{.1,_ppc,...}.dylib for Darwin hosts.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | gcc-config | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -306,9 +306,9 @@ handle_split_usr() { # If /usr isn't a sep mount, then don't bother with linking stuff. if ln "${ROOT}/${LDPATH}/libgcc.a" "${EROOT}"/lib/.gcc.config.$$ 2>/dev/null ; then rm -f "${EROOT}"/lib/.gcc.config.$$ - if [[ -n $(find "${EROOT}"/lib*/lib{gcc_s,unwind}.so* 2>/dev/null) ]] ; then + if [[ -n $(find "${EROOT}"/lib*/lib{gcc_s,unwind}{.so*,*dylib} 2>/dev/null) ]] ; then # If we previously had stuff in /, make sure ldconfig gets re-run. - rm -f "${EROOT}"/lib*/lib{gcc_s,unwind}.so* + rm -f "${EROOT}"/lib*/lib{gcc_s,unwind}{.so*,*dylib} return 1 fi return 0 |