From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756620AbcECVSQ (ORCPT ); Tue, 3 May 2016 17:18:16 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:35292 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756136AbcECVSP (ORCPT ); Tue, 3 May 2016 17:18:15 -0400 Date: Tue, 3 May 2016 23:25:27 +0200 From: Emese Revfy To: Masahiro Yamada Cc: Linux Kbuild mailing list , PaX Team , Brad Spengler , kernel-hardening@lists.openwall.com, Michal Marek , Kees Cook , Rasmus Villemoes , Fengguang Wu , Dmitry Vyukov , Linux Kernel Mailing List , David Brown Subject: Re: [PATCH v7 1/6] Shared library support Message-Id: <20160503232527.6e02867a5d4b8f28f6c0f854@gmail.com> In-Reply-To: References: <20160422201957.97ce16f0e67377d0ce613d19@gmail.com> <20160422202138.d50937e812b30aaba4f38a92@gmail.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2 May 2016 14:03:00 +0900 Masahiro Yamada wrote: Hi, > > diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean > > index 55c96cb..e4e88ab 100644 > > --- a/scripts/Makefile.clean > > +++ b/scripts/Makefile.clean > > @@ -38,7 +38,8 @@ subdir-ymn := $(addprefix $(obj)/,$(subdir-ymn)) > > __clean-files := $(extra-y) $(extra-m) $(extra-) \ > > $(always) $(targets) $(clean-files) \ > > $(host-progs) \ > > - $(hostprogs-y) $(hostprogs-m) $(hostprogs-) > > + $(hostprogs-y) $(hostprogs-m) $(hostprogs-) \ > > + $(hostlibs-y) $(hostlibs-m) $(hostlibs-) > > $(hostcxxlibs-y)$(hostcxxlibs-m) is missing here. > > > BTW, are you planning to support hostlibs without .so extention in the future? > > > You are changing the top Makefile to clean with "*.so" pattern rule. > > Do you need to change both the top Makefile and Makefile.clean > for belt-and-braces cleaning? It doesn't delete the *.so files without the hunk from the top Makefile. The mrproper and distclean targets remove them with this patch: https://github.com/ephox-gcc-plugins/gcc-plugins_linux-next/commit/f23b7eb247ccc9f1007e53313af343980dd52591 But I think this isn't the best solution much like doing it from the top Makefile. -- Emese