Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1194674

Re: [RFC/BUG] perf tools: static build fails

From Adrian Hunter <adrian.hunter@intel.com>
Newsgroups linux.kernel
Subject Re: [RFC/BUG] perf tools: static build fails
Date 2015-07-28 23:20 +0200
Message-ID <pRks2-4ju-9@gated-at.bofh.it> (permalink)
References <pRePF-4Eu-29@gated-at.bofh.it> <pRfLI-5ZT-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 28/07/2015 7:11 p.m., Arnaldo Carvalho de Melo wrote:
> Em Tue, Jul 28, 2015 at 05:13:47PM +0200, Jiri Olsa escreveu:
>> hi,
>> it's failing on perf-read-vdso32 tool..
>> attached patch fixes that for me
>
> To build it statically:
>
>    make -C tools/perf O=/tmp/build/perf LDFLAGS=-static install-bin
>
> Adrian, I wonder if building just these utilities non-statically when we
> ask for a static build of the main tool is ok, is it?

Not really.

Static build works for me, including building perf-read-vdso32 statically,
so I am not sure what the problem is?

>
> - Arnaldo
>
>
>
>> jirka
>>
>>
>> ---
>> diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
>> index 4b58daeff881..a72f790f05e8 100644
>> --- a/tools/perf/Makefile.perf
>> +++ b/tools/perf/Makefile.perf
>> @@ -370,12 +370,12 @@ $(OUTPUT)perf-%: %.o $(PERFLIBS)
>>
>>   ifndef NO_PERF_READ_VDSO32
>>   $(OUTPUT)perf-read-vdso32: perf-read-vdso.c util/find-vdso-map.c
>> -	$(QUIET_CC)$(CC) -m32 $(filter -static,$(LDFLAGS)) -Wall -Werror -o $@ perf-read-vdso.c
>> +	$(QUIET_CC)$(CC) -m32 $(filter-out -static,$(LDFLAGS)) -Wall -Werror -o $@ perf-read-vdso.c
>>   endif
>>
>>   ifndef NO_PERF_READ_VDSOX32
>>   $(OUTPUT)perf-read-vdsox32: perf-read-vdso.c util/find-vdso-map.c
>> -	$(QUIET_CC)$(CC) -mx32 $(filter -static,$(LDFLAGS)) -Wall -Werror -o $@ perf-read-vdso.c
>> +	$(QUIET_CC)$(CC) -mx32 $(filter-out -static,$(LDFLAGS)) -Wall -Werror -o $@ perf-read-vdso.c
>>   endif
>>
>>   $(patsubst perf-%,%.o,$(PROGRAMS)): $(wildcard */*.h)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [RFC/BUG] perf tools: static build fails Adrian Hunter <adrian.hunter@intel.com> - 2015-07-28 23:20 +0200
  Re: [RFC/BUG] perf tools: static build fails Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-07-28 23:30 +0200
    Re: [RFC/BUG] perf tools: static build fails Jiri Olsa <jolsa@redhat.com> - 2015-07-29 10:40 +0200

csiph-web