Mesa (master): Compile with -fvisibility-hidden by default
Kristian Høgsberg
krh at kemper.freedesktop.org
Sun Jan 3 20:55:49 UTC 2010
Module: Mesa
Branch: master
Commit: e388d62b4712bcd75cecad53f5ca20a2bb6f89b1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e388d62b4712bcd75cecad53f5ca20a2bb6f89b1
Author: Kristian Høgsberg <krh at bitplanet.net>
Date: Sat Jan 2 18:59:54 2010 -0500
Compile with -fvisibility-hidden by default
We have all functions that need to be visible marked with PUBLIC and
this is trimming around 4% off the DRI driver .so size.
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 72afabc..b2a969b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,7 +95,7 @@ esac
dnl Add flags for gcc and g++
if test "x$GCC" = xyes; then
- CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math"
+ CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden"
# Work around aliasing bugs - developers should comment this out
CFLAGS="$CFLAGS -fno-strict-aliasing"
More information about the mesa-commit
mailing list