Package: puredata / 0.55.2+ds-1~bpo12+1

libpd_visibility.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: =?utf-8?q?IOhannes_m_zm=C3=B6lnig?= <umlaeute@debian.org>
Date: Mon, 5 Feb 2024 21:55:06 +0100
Subject: reduce visibility of symbols in libpd

Bug: https://github.com/pure-data/pure-data/issues/569
Last-Update: 2021-12-21

by compiling the binary with visbility=hidden
Last-Update: 2021-12-21
---
 src/Makefile.am | 4 ++++
 1 file changed, 4 insertions(+)

--- puredata.orig/src/Makefile.am
+++ puredata/src/Makefile.am
@@ -24,6 +24,10 @@
 
 libpdbin_PROGRAMS =
 
+# reduce visibility of libpd symbols
+libpd_la_CPPFLAGS += -DEXTERN='__attribute__ ((visibility("default"))) extern'
+libpd_la_CFLAGS += -fvisibility=hidden
+
 # there are pd_* and pd_*_core variables as we need different flags on Windows
 # for the DLL and the EXE, other OSes simply set pd_* = $(pd_*_core) later
 # also, the "_core" suffix is used as this keeps automake from thinking these