From dc0ff83b9d2f933ecc558378ccb07204c8084905 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 28 Feb 2015 08:18:01 +0100 Subject: [PATCH] set gcc flags to avoid lintian hardening-no-relro warning --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b35e6d9..654729a 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ SOURCES=screen.c event_loop.c input.c spiceterm.c auth-pve.c all: ${PROGRAMS} spiceterm: ${SOURCES} ${HEADERS} spiceterm.c - gcc -Werror -Wall -Wtype-limits ${SOURCES} -g -O2 -o $@ -lutil $(shell pkg-config) $(shell pkg-config --cflags --libs gthread-2.0,spice-protocol,spice-server,libsasl2) + gcc -Werror -Wall -Wl,-z,relro -Wtype-limits ${SOURCES} -g -O2 -o $@ -lutil $(shell pkg-config) $(shell pkg-config --cflags --libs gthread-2.0,spice-protocol,spice-server,libsasl2) genfont: genfont.c gcc -g -O2 -o $@ genfont.c -Wall -D_GNU_SOURCE -lz