mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Compile with -fvisibility=hidden by default.
This gives around 1MB size reduction.
This commit is contained in:
@@ -29,6 +29,10 @@ AC_DEFUN([LOVE_MSG_ERROR],
|
|||||||
# C++11 support in cpp11.m4
|
# C++11 support in cpp11.m4
|
||||||
ACLOVE_CPP11_TEST
|
ACLOVE_CPP11_TEST
|
||||||
|
|
||||||
|
# Add -fvisibility=hidden and -fvisibility-inlines-hidden
|
||||||
|
CFLAGS="-fvisibility=hidden $CFLAGS"
|
||||||
|
CPPFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden $CPPFLAGS"
|
||||||
|
|
||||||
# Allow people on OSX to use autotools, they need their platform files
|
# Allow people on OSX to use autotools, they need their platform files
|
||||||
AC_ARG_ENABLE([osx],
|
AC_ARG_ENABLE([osx],
|
||||||
AC_HELP_STRING([--enable-osx], [Compile platform-specific files for OSX]), [], [enable_osx=no])
|
AC_HELP_STRING([--enable-osx], [Compile platform-specific files for OSX]), [], [enable_osx=no])
|
||||||
|
|||||||
Reference in New Issue
Block a user