From b09628b3e890bc24ddaf987788070d69acfabbc3 Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Wed, 13 Jun 2012 01:29:37 +0200 Subject: [PATCH] fix symbol visibility for automake builds --- src/Makefile.am | 2 +- src/librtlsdr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 9fa8603..c1c4fe8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,7 +3,7 @@ LIBVERSION=0:0:0 INCLUDES = $(all_includes) -I$(top_srcdir)/include -AM_CFLAGS = -fPIC -Wall +AM_CFLAGS = ${CFLAGS} -fPIC ${SYMBOL_VISIBILITY} lib_LTLIBRARIES = librtlsdr.la diff --git a/src/librtlsdr.c b/src/librtlsdr.c index ffb54a6..94687f3 100644 --- a/src/librtlsdr.c +++ b/src/librtlsdr.c @@ -824,7 +824,7 @@ int rtlsdr_set_testmode(rtlsdr_dev_t *dev, int on) return 0; } -rtlsdr_dongle_t *find_known_device(uint16_t vid, uint16_t pid) +static rtlsdr_dongle_t *find_known_device(uint16_t vid, uint16_t pid) { unsigned int i; rtlsdr_dongle_t *device = NULL;