perf s390: Always build with -fPIC
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Wed, 13 Dec 2017 20:46:54 +0000 (17:46 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 27 Dec 2017 15:15:57 +0000 (12:15 -0300)
commita9a3f1d18a6c9ccf89728e23474645aa91e2f4f1
treeefa17fbfa718565e8cb0ffe0d3fb44e2c8cf6fb5
parent922991c2b14219b33270c770f917e0d1bf8f5597
perf s390: Always build with -fPIC

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>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Thomas Richter <tmricht@linux.vnet.ibm.com>
Cc: linux s390 list <linux-s390@vger.kernel.org>
Link: https://lkml.kernel.org/r/20171207080951.GC4889@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.config