This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, lto-plugin]: Avoid "warning: implicit declaration of function âasprintfâ when building lto-plugin.o"
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 1 Jul 2015 14:25:49 +0200
- Subject: [PATCH, lto-plugin]: Avoid "warning: implicit declaration of function âasprintfâ when building lto-plugin.o"
- Authentication-results: sourceware.org; auth=none
Hello!
We have to enable OS extensions (GNU_SOURCE) to use asprintf.
2015-07-01 Uros Bizjak <ubizjak@gmail.com>
* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
* configure: Regenerate.
* config.h.in: Ditto.
Bootstrapped on x86_64-linux-gnu.
OK for mainline?
Uros.
Index: configure.ac
===================================================================
--- configure.ac (revision 225240)
+++ configure.ac (working copy)
@@ -9,6 +9,7 @@
[specify the directory where to find libiberty [../libiberty]])],
[], with_libiberty=../libiberty)
AC_SUBST(with_libiberty)
+AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
AC_SYS_LARGEFILE
ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_lto_plugin_warn_cflags])