vcpkg/ports/openal-soft/dont-export-symbols-in-static-build.patch
David Katz 992accbf5d [openal-soft] Update OpenAL Soft to 1.20.0 (#9583)
* Update OpenAL Soft to 1.20.0

* Update OpenAL Soft portfile to newer standard
2020-01-10 10:31:13 -08:00

14 lines
355 B
Diff

diff --git a/config.h.in b/config.h.in
index 4a1e2b00..d5496972 100644
--- a/config.h.in
+++ b/config.h.in
@@ -1,6 +1,8 @@
/* API declaration export attribute */
+#ifndef AL_LIBTYPE_STATIC
#define AL_API ${EXPORT_DECL}
#define ALC_API ${EXPORT_DECL}
+#endif
/* Define a restrict macro for non-aliased pointers */
#define RESTRICT ${RESTRICT_DECL}