package/Makefile.in: Add missing options to LDFLAGS for full RELRO build
authorStefan Sørensen <stefan.sorensen@spectralink.com>
Wed, 11 Jul 2018 14:31:09 +0000 (09:31 -0500)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 10 Aug 2018 20:33:17 +0000 (22:33 +0200)
The options for a full RELRO build should also be added to LDFLAGS.

Originally submitted as
http://patchwork.ozlabs.org/patch/904034/

Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/Makefile.in

index 5e0ff8c84179ce07e3659606fde460ab5f5e7eb2..14b3bbd243b60a8b07b6ed98a8f4fdad53319d4b 100644 (file)
@@ -159,7 +159,7 @@ TARGET_HARDENED += $(TARGET_CFLAGS_RELRO)
 TARGET_LDFLAGS += $(TARGET_CFLAGS_RELRO)
 else ifeq ($(BR2_RELRO_FULL),y)
 TARGET_HARDENED += -fPIE $(TARGET_CFLAGS_RELRO_FULL)
-TARGET_LDFLAGS += -pie
+TARGET_LDFLAGS += -pie $(TARGET_CFLAGS_RELRO_FULL)
 endif
 
 ifeq ($(BR2_FORTIFY_SOURCE_1),y)