linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf s390: always build with -fPIC
@ 2017-11-30  8:49 Hendrik Brueckner
  2017-12-01  2:17 ` Namhyung Kim
  0 siblings, 1 reply; 3+ messages in thread
From: Hendrik Brueckner @ 2017-11-30  8:49 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Linux perf users list, Linux s390 list, Martin Schwidefsky,
	Heiko Carstens, Thomas Richter, jonathan.hermann

On s390, object files must be compiled with position-indepedent code
in order to be incrementally linked or linked to shared libraries.
Therefore, add -fPIC to the CFLAGS for s390 to ensure each object
file is built properly.

Reported-by: Jonathan Hermann <jonathan.hermann@de.ibm.com>
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
---
 tools/perf/Makefile.config | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index ed65e82..0833d9f 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -55,6 +55,7 @@ endif
 
 ifeq ($(ARCH),s390)
   NO_PERF_REGS := 0
+  CFLAGS += -fPIC
 endif
 
 ifeq ($(NO_PERF_REGS),0)
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-01 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-30  8:49 [PATCH] perf s390: always build with -fPIC Hendrik Brueckner
2017-12-01  2:17 ` Namhyung Kim
2017-12-01 14:12   ` Hendrik Brueckner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).