On 01/29/18 02:05, Nick wrote:
I believe the reason suckless projects stick to = rather than += or
?= is that they aren't POSIX / OSI standard.
Please also note that blind fails with FreeBSD make (PMake):
> ===> Building for blind-1.1
> make[1]: make[1]: don't know how to make blind-arithm.
On 01/28/18 19:47, fao_ wrote:
-D_XOPEN_SOURCE=700 is equal to #include _XOPEN_SOURCE 700
It states that the compiler should use POSIX 2008 with XSI extensions.
FreeBSD supports POSIX 2008 as far as I can tell, so this is probably
a bug with their implementation.
Could you please post the
On Mon, 29 Jan 2018 10:05:51 +
Nick wrote:
> Quoth Yuri:
> > You should also change your config.mk files to allow external optimization
> > and other flags. For example:
> >
> > > CFLAGS = -std=c99 -Wall -pedantic -O2
> >
> > should be changed to
> >
> > >
Quoth Yuri:
> You should also change your config.mk files to allow external optimization
> and other flags. For example:
>
> > CFLAGS = -std=c99 -Wall -pedantic -O2
>
> should be changed to
>
> > CFLAGS ?= -O2
>
> > CFLAGS += -std=c99 -Wall -pedantic -O2
>
> This way you can allow
Nick writes:
> Quoth Yuri:
> > You should also change your config.mk files to allow external optimization
> > and other flags. For example:
> >
> > > CFLAGS = -std=c99 -Wall -pedantic -O2
> >
> > should be changed to
> >
> > > CFLAGS ?= -O2
> >
> > > CFLAGS += -std=c99 -Wall -pedantic
On 2018-01-29 5:34 pm, Yuri wrote:
See sbase and blind error logs when built with -D_XOPEN_SOURCE=700
below.
Yuri
---sbase errors---
flock.c:21:38: error: use of undeclared identifier 'LOCK_EX'
int fd, status, savederrno, flags = LOCK_EX, nonblk = 0, oflag
= 0;
Quoth Anthony J. Bentley:
> Variables set with = can easily be overridden by packagers simply by
> passing them as arguments to make(1).
>
> That's fine for warnings and optimization flags since changing them
> doesn't hurt anything. If -std=c99 is necessary for the build, it
> shouldn't be in