summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-12-28 17:12:19 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-12-28 17:12:19 +0100
commit4bd77045bbad0aa6bdb8172d396a8cea7225c07e (patch)
tree80626f26f87aa5fa220b494c160a24f3eb6ad813 /configure.ac
parent6ff4cd08a0e6d29dd7587173defb8bf17c0d9b62 (diff)
downloadlibsigrokdecode-4bd77045bbad0aa6bdb8172d396a8cea7225c07e.tar.gz
libsigrokdecode-4bd77045bbad0aa6bdb8172d396a8cea7225c07e.zip
configure.ac: Add missing -fvisibility=hidden to CFLAGS.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ceb9ed9..56dce10 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,7 +42,9 @@ AH_TOP([#ifndef SRD_CONFIG_H
#define SRD_CONFIG_H /* To stop multiple inclusions. */])
AH_BOTTOM([#endif /* SRD_CONFIG_H */])
-CFLAGS="$CFLAGS -Wall -Wextra"
+# Enable more compiler warnings via -Wall and -Wextra. Add -fvisibility=hidden
+# and enforce use of SRD_API to explicitly mark all public API functions.
+CFLAGS="$CFLAGS -Wall -Wextra -fvisibility=hidden"
# Checks for programs.
AC_PROG_CXX