Forráskód Böngészése

Compile OpenAL-soft with hidden visibility by default.

Miku AuahDark 3 éve
szülő
commit
d72a5e4f1e

+ 2 - 2
love/src/jni/openal-soft/Android.mk

@@ -12,8 +12,8 @@ LOCAL_ARM_NEON := true
 #
 #
 # Flags
 # Flags
 #
 #
-LOCAL_CFLAGS := -std=c11 -DAL_ALEXT_PROTOTYPES -DHAVE_OBOE -DHAVE_OPENSL -DRESTRICT=__restrict
-LOCAL_CPPFLAGS := -std=c++14
+LOCAL_CFLAGS := -std=c11 -DAL_ALEXT_PROTOTYPES -DHAVE_OBOE -DHAVE_OPENSL -fvisibility=hidden
+LOCAL_CPPFLAGS := -std=c++14 -fvisibility-inlines-hidden
 LOCAL_CPP_FEATURES := exceptions
 LOCAL_CPP_FEATURES := exceptions
 
 
 #
 #

+ 2 - 2
love/src/jni/openal-soft/config.h

@@ -1,6 +1,6 @@
 /* API declaration export attribute */
 /* API declaration export attribute */
-#define AL_API  __attribute__((visibility("protected")))
-#define ALC_API __attribute__((visibility("protected")))
+#define AL_API  __attribute__((visibility("default")))
+#define ALC_API __attribute__((visibility("default")))
 
 
 /* Define a restrict macro for non-aliased pointers */
 /* Define a restrict macro for non-aliased pointers */
 #define RESTRICT __restrict
 #define RESTRICT __restrict