From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758588AbcHaHVf (ORCPT ); Wed, 31 Aug 2016 03:21:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46346 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752767AbcHaHVd (ORCPT ); Wed, 31 Aug 2016 03:21:33 -0400 Date: Wed, 31 Aug 2016 09:21:28 +0200 From: Jiri Olsa To: Alexey Brodkin Cc: linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, Arnaldo Carvalho de Melo , Vineet Gupta , Wang Nan , Jiri Olsa , He Kuang , Masami Hiramatsu , Namhyung Kim , Peter Zijlstra , Zefan Li , pi3orama@163.com Subject: Re: [PATCH] perf tools: Fix static building Message-ID: <20160831072128.GB4740@krava> References: <1471887222-26270-1-git-send-email-abrodkin@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1471887222-26270-1-git-send-email-abrodkin@synopsys.com> User-Agent: Mutt/1.7.0 (2016-08-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 31 Aug 2016 07:21:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 22, 2016 at 08:33:42PM +0300, Alexey Brodkin wrote: > With commit e3d09ec8126f ("tools lib traceevent: Export dynamic symbols > used by traceevent plugins") we started to add "--dynamic-list" in > LDFLAGS. One side-effect of that was inability to build really > statically-linked perf. IIRC --dynamic-list forces perf to exports some symbols to be used by plugins.. don't see this breaking static build also it's working properly for me: [jolsa@krava perf]$ make LDFLAGS=-static ... [jolsa@krava perf]$ ldd ./perf not a dynamic executable unless I miss what you mean by 'really statically-linked' ;-) Maybe different features enabled/build environment could you please send the .config-detected along with the build error? thanks, jirka