From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luc Van Oostenryck Subject: [PATCH v4 23/38] build: remove rule for shared lib, it's unused Date: Sat, 11 Nov 2017 15:24:22 +0100 Message-ID: <20171111142437.67359-24-luc.vanoostenryck@gmail.com> References: <20171111142437.67359-1-luc.vanoostenryck@gmail.com> Return-path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:56420 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832AbdKKOZa (ORCPT ); Sat, 11 Nov 2017 09:25:30 -0500 Received: by mail-wm0-f65.google.com with SMTP id z3so7588500wme.5 for ; Sat, 11 Nov 2017 06:25:30 -0800 (PST) In-Reply-To: <20171111142437.67359-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: linux-sparse@vger.kernel.org Cc: Luc Van Oostenryck , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Jeff Layton , Josh Triplett , Ramsay Jones Signed-off-by: Luc Van Oostenryck --- Makefile | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 18b9c75dd..70220e841 100644 --- a/Makefile +++ b/Makefile @@ -116,16 +116,7 @@ else $(warning Your system does not have llvm, disabling sparse-llvm) endif -LIB_FILE= libsparse.a -SLIB_FILE= libsparse.so - -# If you add $(SLIB_FILE) to this, you also need to add -fpic to CFLAGS above. -# Doing so incurs a noticeable performance hit, and Sparse does not have a -# stable shared library interface, so this does not occur by default. If you -# really want a shared library, you may want to build Sparse twice: once -# without -fpic to get all the Sparse tools, and again with -fpic to get the -# shared library. -LIBS=$(LIB_FILE) +LIBS := libsparse.a # # Pretty print @@ -172,12 +163,9 @@ $(foreach p,$(PROGRAMS),$(eval $(p): $($(p)-objs))) $(PROGRAMS): % : %.o $(LIBS) $(QUIET_LINK)$(LD) $(ldflags) -o $@ $^ $(ldlibs) -$(LIB_FILE): $(LIB_OBJS) +libsparse.a: $(LIB_OBJS) $(QUIET_AR)$(AR) rcs $@ $(LIB_OBJS) -$(SLIB_FILE): $(LIB_OBJS) - $(QUIET_LINK)$(CC) $(LDFLAGS) -Wl,-soname,$@ -shared -o $@ $(LIB_OBJS)