Explicitly enable -fcommon, rather than untangle common symbols.
authormortimer <mortimer@openbsd.org>
Thu, 28 Jan 2021 01:36:32 +0000 (01:36 +0000)
committermortimer <mortimer@openbsd.org>
Thu, 28 Jan 2021 01:36:32 +0000 (01:36 +0000)
ok deraadt@

gnu/usr.bin/binutils/gdb/Makefile.in

index 6c20f4c..548c045 100644 (file)
@@ -328,7 +328,8 @@ CONFIG_UNINSTALL =
 # your system doesn't have fcntl.h in /usr/include (which is where it
 # should be according to Posix).
 DEFS = @DEFS@
-GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config -DLOCALEDIR="\"$(localedir)\"" $(DEFS)
+GDB_CFLAGS = -fcommon -I. -I$(srcdir) -I$(srcdir)/config \
+  -DLOCALEDIR="\"$(localedir)\"" $(DEFS)
 
 # M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS
 # from the config directory.