On Wed, Oct 21, 2020 at 12:51:03AM -0400, Kurt Mosiejczuk wrote:
> libgphoto2 needs C99 constructs to compile.
>
> This does the usual dance with conditionally adding -std=gnu99
>
> ok?
OK
>
> --Kurt
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/libgphoto2/Makefile,v
> retrieving revision 1.70
> diff -u -r1.70 Makefile
> --- Makefile 17 Oct 2020 08:25:12 -0000 1.70
> +++ Makefile 21 Oct 2020 04:28:19 -0000
> @@ -46,6 +46,11 @@
> # XXX libusb1 is broken
> CONFIGURE_ARGS += --with-libusb-1.0=no
>
> +.include <bsd.port.arch.mk>
> +.if !${PROPERTIES:Mclang}
> +CFLAGS += -std=gnu99
> +.endif
> +
> DEBUG_PACKAGES= ${BUILD_PACKAGES}
>
> # /usr/local/lib/libiconv.a(localcharset.o)(.text+0x0): In function
> `locale_charset':
--
Antoine