[gnome-builder] build: add -fno-plt if it is supported
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build: add -fno-plt if it is supported
- Date: Mon, 18 May 2015 20:07:03 +0000 (UTC)
commit 9ec666416c98fe2f8f83a02ef9ab6f9dc0a86ffc
Author: Christian Hergert <christian hergert me>
Date: Mon May 18 13:03:10 2015 -0700
build: add -fno-plt if it is supported
This helps avoid some GOT jumps, which is always nice in a project of this
size.
configure.ac | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b63a8ec..296e35f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -308,7 +308,9 @@ OPTIMIZE_LDFLAGS=""
# Enable -Bsymbolic
AS_IF([test "$enable_optimizations" != "no"],
[AX_CHECK_LINK_FLAG([-Wl,-Bsymbolic],
- [OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -Wl,-Bsymbolic"])])
+ [OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -Wl,-Bsymbolic"])
+ AX_CHECK_LINK_FLAG([-fno-plt],
+ [OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -fno-plt"])])
# Enable Link-Time-Optimization
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]