$NetBSD: patch-src_Makefile,v 1.1 2024/10/10 17:55:25 nia Exp $ Set correct compiler flags for standards & functions used. --- src/Makefile.orig 2019-09-11 17:43:12.000000000 +0000 +++ src/Makefile @@ -10,7 +10,7 @@ CPPFLAGS = CFLAGS ?= -O2 -override CFLAGS += -ansi -fomit-frame-pointer -fstack-protector-strong -W -Wall -Wunreachable-code -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" +override CFLAGS += -std=gnu89 -fomit-frame-pointer -fstack-protector-strong -W -Wall -Wunreachable-code -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" override CFLAGS += $(shell getconf LFS_CFLAGS) STATIC = MANDB := s@^\('\\\\\"\)[^\*-]*-\*- coding: [^[:blank:]]\+ -\*-@\1@