From: Uwe Hermann Date: Fri, 28 Dec 2012 16:12:19 +0000 (+0100) Subject: configure.ac: Add missing -fvisibility=hidden to CFLAGS. X-Git-Tag: libsigrokdecode-0.1.1~15 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4bd77045bbad0aa6bdb8172d396a8cea7225c07e;p=libsigrokdecode.git configure.ac: Add missing -fvisibility=hidden to CFLAGS. --- 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