mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 04:30:37 -04:00
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 Got will support building with gcc 4.2.1 until OpenBSD retires gcc on all archs.
22 lines
647 B
PHP
22 lines
647 B
PHP
--- Makefile.inc.orig 2020-12-19 00:55:45 UTC
|
|
+++ Makefile.inc
|
|
@@ -4,6 +4,19 @@ CPPFLAGS += -DGOT_LIBEXECDIR=${LIBEXECDIR} -DGOT_VERSI
|
|
#CFLAGS += -DGOT_OBJ_CACHE_DEBUG
|
|
#CFLAGS += -DGOT_DIFF_NO_MMAP
|
|
|
|
+# work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567
|
|
+.include <bsd.compiler.mk>
|
|
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 50000
|
|
+CSTD = gnu89
|
|
+.endif
|
|
+
|
|
+OPENBSD_COMPAT := ${.PARSEDIR}/openbsd-compat
|
|
+CFLAGS += ${CPPFLAGS} -I${OPENBSD_COMPAT}
|
|
+CFLAGS += -Wno-pointer-sign
|
|
+
|
|
+LDFLAGS += -L${OPENBSD_COMPAT}
|
|
+LDADD += -lopenbsd-compat -lmd
|
|
+
|
|
.if "${GOT_RELEASE}" == "Yes"
|
|
PREFIX ?= /usr/local
|
|
BINDIR ?= ${PREFIX}/bin
|