Skip to content

Commit 15a98a9

Browse files
committed
LV2: use linker script to restrict symbol exports for static build
Signed-off-by: Stefan Westerfeld <[email protected]>
1 parent ff5a4a4 commit 15a98a9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lv2/Makefile.am

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spectmorph_lv2_DATA = manifest.ttl spectmorph.ttl
2121
CLEANFILES += spectmorph.ttl
2222
spectmorph.ttl: $(top_builddir)/config.status
2323

24-
EXTRA_DIST += manifest.ttl
24+
EXTRA_DIST += manifest.ttl ldscript.map
2525

2626
# we only want to install the .so file; not the .la file
2727
install-data-hook:
@@ -37,4 +37,5 @@ spectmorph_lv2.so.static:
3737
$(top_builddir)/glui/pugl/.libs/libspectmorphpugl.a \
3838
$(top_builddir)/lib/.libs/libspectmorph.a \
3939
$(STATIC_CXX_LDFLAGS) $(LDFLAGS) \
40-
$(BSE_LIBS) $(FFTW_LIBS) $(CAIRO_LIBS) $(SNDFILE_LIBS) $(GL_LIBS)
40+
$(BSE_LIBS) $(FFTW_LIBS) $(CAIRO_LIBS) $(SNDFILE_LIBS) $(GL_LIBS) \
41+
-Wl,--version-script=$(srcdir)/ldscript.map

lv2/ldscript.map

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
global:
3+
lv2_descriptor;
4+
lv2ui_descriptor;
5+
6+
local: *;
7+
};

0 commit comments

Comments
 (0)