diff options
| author | Stefan Sørensen <stefan.sorensen@spectralink.com> | 2018-07-11 09:31:09 -0500 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-08-10 22:33:17 +0200 |
| commit | 01d8a0a9455f9408819d7f135fba5139f0672507 (patch) | |
| tree | 8d0216d88d3126fea89283818f47ecd43a548b35 | |
| parent | d4f5801027f3329fb6c2cd096f3396d3cd067390 (diff) | |
| download | buildroot-01d8a0a9455f9408819d7f135fba5139f0672507.tar.gz buildroot-01d8a0a9455f9408819d7f135fba5139f0672507.zip | |
package/Makefile.in: Add missing options to LDFLAGS for full RELRO build
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>
| -rw-r--r-- | package/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/Makefile.in b/package/Makefile.in index 5e0ff8c841..14b3bbd243 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -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) |

