From 5810290a6d77fac3ae3a5d4aeb170cb0e0a241e6 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 25 Feb 2015 10:12:15 +0100 Subject: [PATCH] avoid lintian hardening-no-relro warning by adding -Wl,-z,relro compiler flag --- data/PVE/Makefile.am | 2 +- data/src/Makefile.am | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/PVE/Makefile.am b/data/PVE/Makefile.am index f4bcbbd..f420a46 100644 --- a/data/PVE/Makefile.am +++ b/data/PVE/Makefile.am @@ -4,7 +4,7 @@ IPCC.c: IPCC.xs xsubpp IPCC.xs > IPCC.xsc mv IPCC.xsc IPCC.c -AM_CFLAGS = -shared -fPIC -Wall -Werror -Wno-strict-aliasing -I/usr/lib/x86_64-linux-gnu/perl/5.20.1/CORE -DXS_VERSION=VERSION +AM_CFLAGS = -shared -fPIC -Wl,-z,relro -Wall -Werror -Wno-strict-aliasing -I/usr/lib/x86_64-linux-gnu/perl/5.20.1/CORE -DXS_VERSION=VERSION LDADD = $(QB_LIBS) perlbin_PROGRAMS = IPCC.so diff --git a/data/src/Makefile.am b/data/src/Makefile.am index ad8f124..878a041 100644 --- a/data/src/Makefile.am +++ b/data/src/Makefile.am @@ -42,7 +42,7 @@ libpmxcfs_a_SOURCES = \ memdb.c # add -lprofiler for google perftools -AM_CFLAGS = -g -O -std=gnu99 -Wall -Werror -Wno-strict-aliasing $(COROSYNC_CFLAGS) $(SQLITE3_CFLAGS) $(FUSE_CFLAGS) $(QB_CFLAGS) $(GLIB_CFLAGS) $(LIBRRD_CFLAGS) -LDADD = libpmxcfs.a $(COROSYNC_LIBS) $(SQLITE3_LIBS) $(FUSE_LIBS) $(QB_LIBS) $(GLIB_LIBS) $(LIBRRD_LIBS) +AM_CFLAGS = -g -O -Wl,-z,relro -std=gnu99 -Wall -Werror -Wno-strict-aliasing $(COROSYNC_CFLAGS) $(SQLITE3_CFLAGS) $(FUSE_CFLAGS) $(QB_CFLAGS) $(GLIB_CFLAGS) $(LIBRRD_CFLAGS) +LDADD = libpmxcfs.a $(COROSYNC_LIBS) $(SQLITE3_LIBS) $(FUSE_LIBS) $(QB_LIBS) $(GLIB_LIBS) $(LIBRRD_LIBS) CLEANFILES = *~ -- 2.39.5