Browse Source

Compile OpenAL-soft with hidden visibility by default.

Miku AuahDark 3 years ago
parent
commit
d72a5e4f1e
2 changed files with 4 additions and 4 deletions
  1. 2 2
      love/src/jni/openal-soft/Android.mk
  2. 2 2
      love/src/jni/openal-soft/config.h

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

@@ -12,8 +12,8 @@ LOCAL_ARM_NEON := true
 #
 # 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
 
 #

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

@@ -1,6 +1,6 @@
 /* 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 RESTRICT __restrict