From ec07467de9f5ea4425c6b7ddd584f4bdc5a2583d Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 21 Oct 2015 10:13:45 +0100 Subject: [PATCH] libclean: find the libraries properly --- Library/tools/libclean | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Library/tools/libclean b/Library/tools/libclean index 1a9fb044..662d6e22 100755 --- a/Library/tools/libclean +++ b/Library/tools/libclean @@ -4,17 +4,10 @@ # IMHO beats forking the library or building a private copy. # # -UNAME_S=`uname -s` +CPU=z80 +LIBZ80=$(shell tools/findsdcc $(CPU)) -if [ x"$SDCC_LIB" = "x" ]; then - if [ "${UNAME_S}" = "Darwin" ]; then - SDCC_LIB="/usr/local/share/sdcc/lib" - else - SDCC_LIB="/usr/share/sdcc/lib" - fi -fi - -cp ${SDCC_LIB}/z80/z80.lib tmp.lib +cp $(LIBZ80)/$(CPU)/$(CPU).lib tmp.lib # # Scrub the functions we don't want to inherit # Need to review setjmp and maybe a couple of others -- 2.34.1