]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
security_flags: ensure changes to SHARED_OBJECTS cause recompile joshuagl/secflags
authorJoshua Lock <joshua.g.lock@intel.com>
Thu, 18 Aug 2016 22:19:12 +0000 (23:19 +0100)
committerJoshua Lock <joshua.g.lock@intel.com>
Fri, 19 Aug 2016 15:24:32 +0000 (16:24 +0100)
Add the SHARED_OBJECTS variable to SECURITY_LDFLAGS vardeps so that
changing SHARED_OBJECTS causes do_compile to re-run.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
meta/conf/distro/include/security_flags.inc

index 295c733d3ef90b5663c8bf2608ced8b78480ac36..901c8416f4070211f86806a882f4a006b007551f 100644 (file)
@@ -24,6 +24,7 @@ SECURITY_CFLAGS ?= "-fstack-protector-strong --param ssp-buffer-size=4 -pie -fpi
 SECURITY_NO_PIE_CFLAGS ?= "-fstack-protector-strong --param ssp-buffer-size=4 ${lcl_maybe_fortify} ${SECURITY_STRINGFORMAT}"
 
 SECURITY_LDFLAGS ?= "-Wl,-z,relro,-z,now${pie_ld}"
+SECURITY_LDFLAGS[vardeps] += "SHARED_OBJECTS"
 SECURITY_X_LDFLAGS ?= "-Wl,-z,relro${pie_ld}"
 
 # powerpc does not get on with pie for reasons not looked into as yet