]> git.proxmox.com Git - pve-cluster.git/commitdiff
avoid lintian hardening-no-relro warning
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Feb 2015 09:12:15 +0000 (10:12 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Feb 2015 09:12:15 +0000 (10:12 +0100)
by adding -Wl,-z,relro compiler flag

data/PVE/Makefile.am
data/src/Makefile.am

index f4bcbbd7b2e41cf18cf51bba0bbb34f95b8b4256..f420a46e19b97335baf5aa11da7a12a98df9baa2 100644 (file)
@@ -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
index ad8f1241c8b050d4f45766dea0b4451ece5f4eb5..878a0411aed4fd5da0c7fb685084052831624e7a 100644 (file)
@@ -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 = *~