Re: [gcc-archs/sparc64] Fix net/arping build

2020-03-16 Thread Kurt Mosiejczuk
On Mon, Mar 16, 2020 at 08:48:50PM +0100, Jeremie Courreges-Anglas wrote:
> On Mon, Mar 16 2020, Kurt Mosiejczuk  wrote:
> > arping needs c99 mode. Adding this to CFLAGS fixes the build on sparc64
> > (and presumably other base-gcc architectures).

> > ok?

> I'd prefer -std=gnu99.  -std=gnuXX is the default for both clang and gcc.

> > (cc maintainer)

> done :)

Sure thing. I just need to remember to grep for gnu99 next time I am
looking for an example :)

--Kurt



Re: [gcc-archs/sparc64] Fix net/arping build

2020-03-16 Thread Jeremie Courreges-Anglas
On Mon, Mar 16 2020, Kurt Mosiejczuk  wrote:
> arping needs c99 mode. Adding this to CFLAGS fixes the build on sparc64
> (and presumably other base-gcc architectures).
>
> ok?

I'd prefer -std=gnu99.  -std=gnuXX is the default for both clang and gcc.

> (cc maintainer)

done :)

> --Kurt
>
> Index: Makefile
> ===
> RCS file: /cvs/ports/net/arping/Makefile,v
> retrieving revision 1.50
> diff -u -p -r1.50 Makefile
> --- Makefile  9 Mar 2020 07:58:08 -   1.50
> +++ Makefile  16 Mar 2020 16:31:46 -
> @@ -19,6 +19,8 @@ MASTER_SITES =  http://www.habets.pp.se/s
>  
>  LIB_DEPENDS =net/libnet/1.1
>  
> +CFLAGS +=-std=c99
> +
>  CONFIGURE_STYLE = gnu
>  CONFIGURE_ENV = CFLAGS="${CFLAGS} -I${LOCALBASE}/include/libnet-1.1 \
>   `libnet-config-1.1 --defines`" \
>

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE



Re: [gcc-archs/sparc64] Fix net/arping build

2020-03-16 Thread Klemens Nanni
OK kn



[gcc-archs/sparc64] Fix net/arping build

2020-03-16 Thread Kurt Mosiejczuk
arping needs c99 mode. Adding this to CFLAGS fixes the build on sparc64
(and presumably other base-gcc architectures).

ok?

(cc maintainer)

--Kurt

Index: Makefile
===
RCS file: /cvs/ports/net/arping/Makefile,v
retrieving revision 1.50
diff -u -p -r1.50 Makefile
--- Makefile9 Mar 2020 07:58:08 -   1.50
+++ Makefile16 Mar 2020 16:31:46 -
@@ -19,6 +19,8 @@ MASTER_SITES =http://www.habets.pp.se/s
 
 LIB_DEPENDS =  net/libnet/1.1
 
+CFLAGS +=  -std=c99
+
 CONFIGURE_STYLE = gnu
 CONFIGURE_ENV = CFLAGS="${CFLAGS} -I${LOCALBASE}/include/libnet-1.1 \
`libnet-config-1.1 --defines`" \