From 139d5ef55564514c31f02dd82cef91236c9ff523 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juho=20V=C3=A4h=C3=A4-Herttua?= Date: Tue, 16 Apr 2013 23:42:34 +0300 Subject: [PATCH] Symbol exporting related fixes in automake scripts --- src/lib/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 0046228..8525fc6 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -4,10 +4,11 @@ AM_CPPFLAGS = -I$(top_srcdir)/include/shairplay lib_LTLIBRARIES = libshairplay.la libshairplay_la_SOURCES = base64.c base64.h digest.c digest.h dnssd.c dnssdint.h http_parser.c http_parser.h http_request.c http_request.h http_response.c http_response.h httpd.c httpd.h logger.c logger.h netutils.c netutils.h raop.c raop_buffer.c raop_buffer.h raop_rtp.c raop_rtp.h rsakey.c rsakey.h rsapem.c rsapem.h sdp.c sdp.h utils.c utils.h compat.h memalign.h sockets.h threads.h +libshairplay_la_CPPFLAGS = $(AM_CPPFLAGS) # This library depends on 3rd party libraries libshairplay_la_LIBADD = crypto/libcrypto.la alac/libalac.la -libshairplay_la_LDFLAGS = -version-info 0:0:0 +libshairplay_la_LDFLAGS = -no-undefined -version-info 0:0:0 ### Update -version-info above with the following rules # 1. Start with version information of ‘0:0:0’ for each libtool library. @@ -28,5 +29,8 @@ libshairplay_la_LIBADD += $(LIBADD_DLOPEN) libshairplay_la_LIBADD += $(LIBM) if OS_WIN32 -libshairplay_la_LDFLAGS += -no-undefined -lws2_32 -lwinmm +libshairplay_la_CPPFLAGS += -DDLL_EXPORT +libshairplay_la_LDFLAGS += -lws2_32 -lwinmm +else +libshairplay_la_LDFLAGS += -export-symbols-regex '^(raop|dnssd)' endif -- 2.34.1