summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Franzmann2022-05-21 14:09:00 +0200
committerFlorian Franzmann2022-05-23 18:01:25 +0200
commit2cf761671c37b20056754db45a7523f64fe07133 (patch)
tree156ab40ff480b688a106fe52dfddf5620f3fead0
parent15c77d180efdbd8ccbad1f6ba5697cc30a49c50b (diff)
disk/grub2: filter breaking flags
-rwxr-xr-xdisk/grub2/BUILD9
-rw-r--r--disk/grub2/HISTORY3
2 files changed, 11 insertions, 1 deletions
diff --git a/disk/grub2/BUILD b/disk/grub2/BUILD
index cdcba2c96a..391d6cd2e0 100755
--- a/disk/grub2/BUILD
+++ b/disk/grub2/BUILD
@@ -10,5 +10,12 @@ LDFLAGS=${LDFLAGS%-s} &&
LDFLAGS=${LDFLAGS//-Wl,-fuse-ld=gold/} &&
LDFLAGS+=" -Wl,-fuse-ld=bfd" &&
-disable_pic force &&
+# let the build system handle stack protector
+OPTS+=" --enable-stack-protector" &&
+disable_stack_protector &&
+
+disable_fortify_source &&
+disable_cf_protection &&
+disable_pic force &&
+
default_build
diff --git a/disk/grub2/HISTORY b/disk/grub2/HISTORY
index f0d65f83d2..56caec3c88 100644
--- a/disk/grub2/HISTORY
+++ b/disk/grub2/HISTORY
@@ -1,3 +1,6 @@
+2022-05-21 Florian Franzmann <bwlf@bandrate.org>
+ * BUILD: filter breaking CFLAGS and CPPFLAGS
+
2022-05-14 Florian Franzmann <bwlf@bandrate.org>
* DEPENDS: add suggested dependency on efibootmgr