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


Groups > linux.kernel > #1175551

[PATCH 8/8] perf tools: Allow to specify custom linker command

From Arnaldo Carvalho de Melo <acme@kernel.org>
Newsgroups linux.kernel
Subject [PATCH 8/8] perf tools: Allow to specify custom linker command
Date 2015-07-01 23:30 +0200
Message-ID <pHxJV-23b-45@gated-at.bofh.it> (permalink)
References <pHxJU-23b-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Aaro Koskinen <aaro.koskinen@nokia.com>

Allow to specify custom linker command. This fixes MIPS64 builds for
64-bit userspace as it will allow to pass a linker using the correct
linker flags for 64-bit ABI (by default GNU binutils ld will assume
N32).

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1435751683-18500-2-git-send-email-aaro.koskinen@nokia.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/Makefile.perf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 0e0938afbbb1..7a4b549214e3 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -110,7 +110,7 @@ $(OUTPUT)PERF-VERSION-FILE: ../../.git/HEAD
 	$(Q)touch $(OUTPUT)PERF-VERSION-FILE
 
 CC = $(CROSS_COMPILE)gcc
-LD = $(CROSS_COMPILE)ld
+LD ?= $(CROSS_COMPILE)ld
 AR = $(CROSS_COMPILE)ar
 PKG_CONFIG = $(CROSS_COMPILE)pkg-config
 
-- 
2.1.0

--
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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[GIT PULL 0/8] perf/core fixes Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-07-01 23:30 +0200
  [PATCH 7/8] perf tools: Create config.detected into OUTPUT directory Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-07-01 23:30 +0200
  [PATCH 8/8] perf tools: Allow to specify custom linker command Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-07-01 23:30 +0200
  [PATCH 5/8] perf kvm: Fill in the missing session freeing after an error occurs Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-07-01 23:30 +0200
  [PATCH 4/8] perf report: Fill in the missing session freeing after an error occurs Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-07-01 23:30 +0200
  [PATCH 3/8] perf kmem: Fill in the missing session freeing after an error occurs Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-07-01 23:30 +0200
  Re: [GIT PULL 0/8] perf/core fixes Ingo Molnar <mingo@kernel.org> - 2015-07-02 11:00 +0200
  Re: [GIT PULL 0/8] perf/core fixes Ingo Molnar <mingo@kernel.org> - 2015-07-02 11:00 +0200
    Re: [GIT PULL 0/8] perf/core fixes Jiri Olsa <jolsa@redhat.com> - 2015-07-02 11:20 +0200
      Re: [GIT PULL 0/8] perf/core fixes Ingo Molnar <mingo@kernel.org> - 2015-07-02 11:30 +0200

csiph-web