Re: [PATCH] stdbuf: enforce -fPIC compilation for stdbuf.so, required by
From:
Philipp Thomas
Subject:
Re: [PATCH] stdbuf: enforce -fPIC compilation for stdbuf.so, required by gcc-5.0
Date:
Thu, 26 Mar 2015 14:57:00 +0100
User-agent:
Mutt/1.5.21 (2010-09-15)
* Pádraig Brady (address@hidden) [20150326 09:20]:
> BTW, is the -fno-pie not implicit in -fPIC ?
It is, that's why just changing the oder is a way to fix this:
src/local.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: src/local.mk
===================================================================
--- src/local.mk.orig 2015-03-26 13:20:17.512693144 +0100
+++ src/local.mk 2015-03-26 13:26:02.783589709 +0100
@@ -403,7 +403,7 @@ src_libstdbuf_so_LDADD = $(LIBINTL)
# (as per the check in configure.ac), so these flags should be available.
# libtool is probably required to relax this dependency.
src_libstdbuf_so_LDFLAGS = -shared
-src_libstdbuf_so_CFLAGS = -fPIC $(AM_CFLAGS)
+src_libstdbuf_so_CFLAGS = $(AM_CFLAGS) -fPIC
BUILT_SOURCES += src/coreutils.h
if SINGLE_BINARY
Or do something like
src_libstdbuf_so_CFLAGS = -fPIC $(filter-out $(AM_CFLAGS), -fpie)
Philipp