From 1eff159177d923fd6f840f1b9fb43c2707c4aa29 Mon Sep 17 00:00:00 2001 From: "Richard M. Shaw" Date: Wed, 9 Dec 2015 09:06:17 -0600 Subject: [PATCH] Do hardened build. --- vtable-dumper.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtable-dumper.spec b/vtable-dumper.spec index a557775..0c54304 100644 --- a/vtable-dumper.spec +++ b/vtable-dumper.spec @@ -21,7 +21,7 @@ compatibility. %setup -q # Simple makefile doesn't respect environment variables so cheat it. -sed -i 's|\-Wall|%{optflags}|' Makefile +sed -i 's|\-Wall|%{optflags} -fPIC -pie -Wl,-z,relro -Wl,-z,now|' Makefile %build