|
Zbigniew Jędrzejewski-Szmek |
399a2a |
From 86d07870ff23fb3a0d13760d31ff23409ef19523 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Date: Sun, 1 Mar 2015 22:46:43 -0500
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Subject: [PATCH] build-sys: allow lto and FORTIFY_SOURCE with -O[sz]
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
https://bugs.freedesktop.org/show_bug.cgi?id=89382
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
(cherry picked from commit 0289f2fb2a64df53b589b771f69c43126b029590)
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
---
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
configure.ac | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
diff --git a/configure.ac b/configure.ac
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
index 97a29d63fd..6bc347423b 100644
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
--- a/configure.ac
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
+++ b/configure.ac
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
@@ -208,13 +208,13 @@ AS_CASE([$CC], [*clang*],
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
-Wno-gnu-variable-sized-type-not-at-end \
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
])])
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
-AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
+AS_CASE([$CFLAGS], [*-O[[12345sz\ ]]*],
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
[CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
-flto -ffat-lto-objects])],
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
[AC_MSG_RESULT([skipping -flto, optimization not enabled])])
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
AC_SUBST([OUR_CFLAGS], "$with_cflags $sanitizer_cflags")
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
-AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
+AS_CASE([$CFLAGS], [*-O[[12345sz\ ]]*],
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
[CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
-Wp,-D_FORTIFY_SOURCE=2])],
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
[AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
|