Browse Source

Patch lv2 libs to ensure hidden symbols

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.0
falkTX 9 months ago
parent
commit
dd4212b567
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 84 additions and 0 deletions
  1. +21
    -0
      patches/lilv/01_hidden-lilv-api.patch
  2. +21
    -0
      patches/serd/01_hidden-serd-api.patch
  3. +21
    -0
      patches/sord/01_hidden-sord-api.patch
  4. +21
    -0
      patches/sratom/01_hidden-sratom-api.patch

+ 21
- 0
patches/lilv/01_hidden-lilv-api.patch View File

@@ -0,0 +1,21 @@
diff --git a/include/lilv/lilv.h b/include/lilv/lilv.h
index 5fd7a9f..368df82 100644
--- a/include/lilv/lilv.h
+++ b/include/lilv/lilv.h
@@ -27,15 +27,7 @@
#include <stdint.h>
#include <stdio.h>
-#if defined(_WIN32) && !defined(LILV_STATIC) && defined(LILV_INTERNAL)
-# define LILV_API __declspec(dllexport)
-#elif defined(_WIN32) && !defined(LILV_STATIC)
-# define LILV_API __declspec(dllimport)
-#elif defined(__GNUC__)
-# define LILV_API __attribute__((visibility("default")))
-#else
-# define LILV_API
-#endif
+#define LILV_API
#if defined(__GNUC__) && \
(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))

+ 21
- 0
patches/serd/01_hidden-serd-api.patch View File

@@ -0,0 +1,21 @@
diff --git a/include/serd/serd.h b/include/serd/serd.h
index e550541..c2ee87d 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -25,15 +25,7 @@
#include <stdint.h>
#include <stdio.h>
-#if defined(_WIN32) && !defined(SERD_STATIC) && defined(SERD_INTERNAL)
-# define SERD_API __declspec(dllexport)
-#elif defined(_WIN32) && !defined(SERD_STATIC)
-# define SERD_API __declspec(dllimport)
-#elif defined(__GNUC__)
-# define SERD_API __attribute__((visibility("default")))
-#else
-# define SERD_API
-#endif
+#define SERD_API
#ifdef __GNUC__
# define SERD_PURE_FUNC __attribute__((pure))

+ 21
- 0
patches/sord/01_hidden-sord-api.patch View File

@@ -0,0 +1,21 @@
diff --git a/include/sord/sord.h b/include/sord/sord.h
index a327031..486a981 100644
--- a/include/sord/sord.h
+++ b/include/sord/sord.h
@@ -27,15 +27,7 @@
#include <stddef.h>
#include <stdint.h>
-#if defined(_WIN32) && !defined(SORD_STATIC) && defined(SORD_INTERNAL)
-# define SORD_API __declspec(dllexport)
-#elif defined(_WIN32) && !defined(SORD_STATIC)
-# define SORD_API __declspec(dllimport)
-#elif defined(__GNUC__)
-# define SORD_API __attribute__((visibility("default")))
-#else
-# define SORD_API
-#endif
+#define SORD_API
#ifdef __cplusplus
extern "C" {

+ 21
- 0
patches/sratom/01_hidden-sratom-api.patch View File

@@ -0,0 +1,21 @@
diff --git a/include/sratom/sratom.h b/include/sratom/sratom.h
index 26966ee..61f2e20 100644
--- a/include/sratom/sratom.h
+++ b/include/sratom/sratom.h
@@ -30,15 +30,7 @@
#include <stdbool.h>
#include <stdint.h>
-#if defined(_WIN32) && !defined(SRATOM_STATIC) && defined(SRATOM_INTERNAL)
-# define SRATOM_API __declspec(dllexport)
-#elif defined(_WIN32) && !defined(SRATOM_STATIC)
-# define SRATOM_API __declspec(dllimport)
-#elif defined(__GNUC__)
-# define SRATOM_API __attribute__((visibility("default")))
-#else
-# define SRATOM_API
-#endif
+#define SRATOM_API
#ifdef __cplusplus
extern "C" {

Loading…
Cancel
Save