Compile OpenAL-soft with hidden visibility by default.

This commit is contained in:
Miku AuahDark
2023-01-01 14:16:36 +08:00
parent ca0fe2c4ca
commit d72a5e4f1e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
View File
@@ -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