summaryrefslogtreecommitdiffstats
path: root/libelf/Makefile.am
diff options
context:
space:
mode:
authorJose E. Marchesi <[email protected]>2015-10-05 17:36:30 +0200
committerMark Wielaard <[email protected]>2015-10-06 23:54:34 +0200
commit6a20e20ea9f122aea86533d28a688e7bb2812aa1 (patch)
tree1037509afe69b6705d84c7761c95ea1cd2a9435d /libelf/Makefile.am
parent133509fa406e0e8d4d0f0632e2ee8c5e32dcb010 (diff)
Use -fPIC instead of -fpic when generating PIC code.
This avoids relocation overflows in sparc/sparc64 targets while linking, where the reachable data using -fpic is only 4kb. Signed-off-by: Jose E. Marchesi <[email protected]>
Diffstat (limited to 'libelf/Makefile.am')
-rw-r--r--libelf/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/libelf/Makefile.am b/libelf/Makefile.am
index afcb2aa5..1fe7e316 100644
--- a/libelf/Makefile.am
+++ b/libelf/Makefile.am
@@ -29,7 +29,7 @@
##
include $(top_srcdir)/config/eu.am
if BUILD_STATIC
-AM_CFLAGS += -fpic
+AM_CFLAGS += -fPIC
endif
GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
VERSION = 1