projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92b315d
)
build-sys: enable gcc Link Time Optimization when optimization is enabled
author
Kay Sievers
<kay@vrfy.org>
Thu, 21 Nov 2013 20:56:18 +0000
(21:56 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Thu, 21 Nov 2013 20:56:18 +0000
(21:56 +0100)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
7794541
..
c0656f4
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-156,6
+156,10
@@
CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
-fdata-sections \
-fstack-protector \
--param=ssp-buffer-size=4])
+AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
+ [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
+ -flto])],
+ [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
AC_SUBST([OUR_CFLAGS], "$with_cflags $address_sanitizer_cflags")
AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],