summaryrefslogtreecommitdiffstats
path: root/libebl
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-02-24 13:11:03 +0100
committerUlf Hermann <[email protected]>2017-04-28 09:21:43 +0000
commit76acde30382254f7ca51af67ea91433719080edd (patch)
tree71564ca688cff175381ecd3e51b1c8e2507db998 /libebl
parentffb6a77fc4f0533126a3ff49ec5c03ef8e674520 (diff)
Check for -z,defs, -z,relro, -fPIC, -fPIE before using them
On windows those aren't needed because the link results are no ELF files and all code is position independent anyway. gcc then complains about them, which is in turn caught by -Werror. Change-Id: Ie3d600b7c430698fc3d867a986a4d48f7ad1bbec Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'libebl')
-rw-r--r--libebl/ChangeLog4
-rw-r--r--libebl/Makefile.am2
2 files changed, 5 insertions, 1 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index 0605083e..56b0421b 100644
--- a/libebl/ChangeLog
+++ b/libebl/ChangeLog
@@ -1,5 +1,9 @@
2017-04-27 Ulf Hermann <[email protected]>
+ * Makefile.am: Use fpic_CFLAGS.
+
+2017-04-27 Ulf Hermann <[email protected]>
+
* eblmachineflagname.c: Don't include system.h.
* eblopenbackend.c: Likewise.
diff --git a/libebl/Makefile.am b/libebl/Makefile.am
index 6f945eb8..60d0e734 100644
--- a/libebl/Makefile.am
+++ b/libebl/Makefile.am
@@ -28,7 +28,7 @@
## not, see <http://www.gnu.org/licenses/>.
##
include $(top_srcdir)/config/eu.am
-AM_CFLAGS += -fPIC
+AM_CFLAGS += $(fpic_CFLAGS)
AM_CPPFLAGS += -I$(srcdir)/../libelf -I$(srcdir)/../libdw -I$(srcdir)/../libasm
VERSION = 1
LIBEBL_SUBDIR = @LIBEBL_SUBDIR@