summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2012-06-13 01:30:08 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2012-06-13 01:30:08 +0200
commit233c5b7201661080efee58935c7bf9da66541353 (patch)
tree69186e9e0ca0af6d1ce9d9fb9a52194b632a518f
parent9e2a7e199a66a9d52705ba0467a20d2ffe6eacd7 (diff)
fix symbol visibility for automake buildsv0.1
-rw-r--r--software/libosmosdr/src/Makefile.am2
-rw-r--r--software/libosmosdr/src/libosmosdr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/software/libosmosdr/src/Makefile.am b/software/libosmosdr/src/Makefile.am
index 873559d..888ec41 100644
--- a/software/libosmosdr/src/Makefile.am
+++ b/software/libosmosdr/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 = libosmosdr.la
diff --git a/software/libosmosdr/src/libosmosdr.c b/software/libosmosdr/src/libosmosdr.c
index c52924b..b853b0f 100644
--- a/software/libosmosdr/src/libosmosdr.c
+++ b/software/libosmosdr/src/libosmosdr.c
@@ -555,7 +555,7 @@ int osmosdr_set_fpga_iq_ofs(osmosdr_dev_t *dev, int16_t iofs, int16_t qofs)
buffer, sizeof(buffer), CTRL_TIMEOUT);
}
-osmosdr_dongle_t *find_known_device(uint16_t vid, uint16_t pid)
+static osmosdr_dongle_t *find_known_device(uint16_t vid, uint16_t pid)
{
unsigned int i;
osmosdr_dongle_t *device = NULL;