From 43e026277bbed7004f774d06eac3fe977c8b979a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 2 Aug 2016 09:28:22 -0700 Subject: [PATCH] configure.ac: disable common data to avoid problems with some linkers Disable common data to: a) discover problems with common data as quickly as possible (we should not use common data as some compilers may not handle it); b) work around a problem with the OSX linker causing it to not find zero_buffer even though it is defined in nasmlib/zerobuf.c. Reported-by: anonymous coward Signed-off-by: H. Peter Anvin --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index e621b3c18..abc29a7f1 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,11 @@ dnl Force gcc and gcc-compatible compilers treat signed integers dnl as 2's complement PA_ADD_CFLAGS([-fwrapv]) +dnl Don't put things in common if we can avoid it. We don't want to +dnl assume all compilers support common, and this will help find those +dnl problems. This also works around an OSX linker problem. +PA_ADD_CFLAGS([-fno-common]) + dnl Look for programs... AC_CHECK_PROGS(NROFF, nroff, false) AC_CHECK_PROGS(ASCIIDOC, asciidoc, false)