Index: head/devel/elfutils/Makefile =================================================================== --- head/devel/elfutils/Makefile +++ head/devel/elfutils/Makefile @@ -3,6 +3,7 @@ PORTNAME= elfutils PORTVERSION= 0.174 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= https://sourceware.org/elfutils/ftp/${PORTVERSION}/ @@ -33,11 +34,13 @@ NLS_CONFIGURE_ENABLE= nls USES= autoreconf gmake libtool tar:bzip2 -USE_GCC= 7 +USE_GCC= yes GNU_CONFIGURE= yes USE_LDCONFIG= yes CFLAGS+= -Wno-null-dereference -Wno-unused-value +# For GCC8: +CFLAGS+= -Wno-cast-function-type # Give i386 a prayer of building, and we can fix the warnings later: CFLAGS_i386+= -Wno-error Index: head/devel/elfutils/files/patch-lib_eu-config.h =================================================================== --- head/devel/elfutils/files/patch-lib_eu-config.h +++ head/devel/elfutils/files/patch-lib_eu-config.h @@ -1,12 +1,13 @@ --- lib/eu-config.h.orig 2015-06-11 11:38:55 UTC +++ lib/eu-config.h -@@ -187,4 +187,170 @@ asm (".section predict_data, \"aw\"; .pr +@@ -187,4 +187,171 @@ asm (".section predict_data, \"aw\"; .pr #endif +/* FreeBSD ports of glibcisms */ +#include +#include ++#include +#include +#include +#include @@ -40,7 +41,7 @@ +rawmemchr(const void *s, int c) +{ + -+ return (memchr(s, c, SIZE_MAX)); ++ return (memchr(s, c, SSIZE_MAX)); +} + +static inline void