buildsystem: Use autoconf variable for symbol visibility flag
authorGregor Jasny <gjasny@googlemail.com>
Sun, 13 Oct 2013 11:22:10 +0000 (13:22 +0200)
committerGregor Jasny <gjasny@googlemail.com>
Sun, 13 Oct 2013 11:22:10 +0000 (13:22 +0200)
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
lib/libv4l-mplane/Makefile.am
lib/libv4l2rds/Makefile.am

index c11b88a..466110d 100644 (file)
@@ -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
index fc5bc35..474e79f 100644 (file)
@@ -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)