Browse Source

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.
tags/7.8-rc1
Kristian Høgsberg 15 years ago
parent
commit
e388d62b47
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      configure.ac

+ 1
- 1
configure.ac 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"

Loading…
Cancel
Save