92d5fe79c115a02b0aeddbf13d748487a689542c
[feed/packages.git] / utils / qemu / patches / 0001-configure-allow-disable-fortify_source.patch
1 From 871bc03884e8dd4a4b50d05022e347e72f4733d9 Mon Sep 17 00:00:00 2001
2 From: Yousong Zhou <yszhou4tech@gmail.com>
3 Date: Mon, 11 May 2020 10:46:09 +0800
4 Subject: [PATCH] configure: allow disable fortify_source
5
6 Tell build system of qemu to not add _FORTIFY_SOURCE options and let the
7 OpenWrt base build system decide flavor of fortify_source to use
8 ---
9 configure | 2 ++
10 1 file changed, 2 insertions(+)
11
12 --- a/configure
13 +++ b/configure
14 @@ -1194,6 +1194,8 @@ for opt do
15 ;;
16 --enable-jemalloc) meson_option_parse --enable-malloc=jemalloc jemalloc
17 ;;
18 + --disable-fortify-source) fortify_source="no"
19 + ;;
20 # everything else has the same name in configure and meson
21 --enable-* | --disable-*) meson_option_parse "$opt" "$optarg"
22 ;;