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.
This commit is contained in:
Kristian Høgsberg 2010-01-02 18:59:54 -05:00
parent a60084088b
commit e388d62b47

View File

@ -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"