aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2013-10-13 11:22:10 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2014-01-13 19:59:11 (GMT)
commit1d907820aca5b6b78927128a77003558053f0b64 (patch)
tree83096bdb33b9906fe8da89afd8ec4ae5684d243e
parente620b404fb5b4987e4a0e54848bbc3f92a7019fa (diff)
buildsystem: Use autoconf variable for symbol visibility flag
Signed-off-by: Gregor Jasny <gjasny@googlemail.com> (cherry picked from commit ea6c9b30c006d469c0ac825e90dce17c8644ad7f)
-rw-r--r--lib/libv4l-mplane/Makefile.am2
-rw-r--r--lib/libv4l2rds/Makefile.am2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libv4l-mplane/Makefile.am b/lib/libv4l-mplane/Makefile.am
index c11b88a..466110d 100644
--- a/lib/libv4l-mplane/Makefile.am
+++ b/lib/libv4l-mplane/Makefile.am
@@ -3,5 +3,5 @@ libv4l2plugin_LTLIBRARIES = libv4l-mplane.la
endif
libv4l_mplane_la_SOURCES = libv4l-mplane.c
-libv4l_mplane_la_CPPFLAGS = -fvisibility=hidden -std=gnu99
+libv4l_mplane_la_CPPFLAGS = $(CFLAG_VISIBILITY) -std=gnu99
libv4l_mplane_la_LDFLAGS = -avoid-version -module -shared -export-dynamic -lpthread
diff --git a/lib/libv4l2rds/Makefile.am b/lib/libv4l2rds/Makefile.am
index fc5bc35..474e79f 100644
--- a/lib/libv4l2rds/Makefile.am
+++ b/lib/libv4l2rds/Makefile.am
@@ -8,5 +8,5 @@ noinst_LTLIBRARIES = libv4l2rds.la
endif
libv4l2rds_la_SOURCES = libv4l2rds.c
-libv4l2rds_la_CPPFLAGS = -fvisibility=hidden $(ENFORCE_LIBV4L_STATIC) -std=gnu99
+libv4l2rds_la_CPPFLAGS = $(CFLAG_VISIBILITY) $(ENFORCE_LIBV4L_STATIC) -std=gnu99
libv4l2rds_la_LDFLAGS = $(LIBV4L2RDS_VERSION) -lpthread $(ENFORCE_LIBV4L_STATIC)

Privacy Policy