From: Kristian Høgsberg Date: Sat, 2 Jan 2010 23:59:54 +0000 (-0500) Subject: Compile with -fvisibility-hidden by default X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e388d62b4712bcd75cecad53f5ca20a2bb6f89b1;p=mesa.git 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. --- diff --git a/configure.ac b/configure.ac index 72afabcf9eb..b2a969bc8c9 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"