From: Ole Streicher Date: Wed, 9 Aug 2017 11:29:31 +0000 (+0200) Subject: Recognise the exit status of mklibs X-Git-Tag: archive/raspbian/2.1.18-4+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2b3524f302a084e0cefeb4f893d5cedd220a0abf;p=xpa.git Recognise the exit status of mklibs This is required to correctly fail if mklibs exits with error. Closes: #871509 Gbp-Pq: Name Recognise-the-exit-status-of-mklibs.patch --- diff --git a/Makefile.in b/Makefile.in index edb1a91..0e3af2b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -185,7 +185,7 @@ shlib: $(LIB) rm -f lib$(PACKAGE).tmp/xt*.o; \ rm -f lib$(PACKAGE).tmp/tcl*.o; \ CC='$(CC)' CXX=$(CXX) \ - ./mklib -ldflags "$(LDFLAGS)" -o $(PACKAGE) `LC_ALL=C ls lib$(PACKAGE).tmp/*.o`; \ + ./mklib -ldflags "$(LDFLAGS)" -o $(PACKAGE) `LC_ALL=C ls lib$(PACKAGE).tmp/*.o` && \ rm -rf lib$(PACKAGE).tmp) mingw-dll: $(LIBOBJS) @@ -204,7 +204,7 @@ shtclxpa: tclxpa @(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \ (cd $(PACKAGE)tmp && ar x ../libtclxpa.a); \ CC='$(CC)' CXX='$(CXX)' \ - ./mklib -ldflags "$(LDFLAGS)" -o tclxpa -L. -lxpa `LC_ALL=C ls $(PACKAGE)tmp/*.o` -ltclstub; \ + ./mklib -ldflags "$(LDFLAGS)" -o tclxpa -L. -lxpa `LC_ALL=C ls $(PACKAGE)tmp/*.o` -ltclstub && \ rm -rf $(PACKAGE)tmp; ) diff: