Страхиња Радић wrote in
<4ltqm5qhvjo5nog4x7ywaktop3p7dctpmtey7svjtdkciptkt4_AT_2khst7ql6avd>:
|Дана 24/09/22 09:30AM, Страхиња Радић написа:
|> This is perhaps the moment when suckless movement should pick the
|> recommended version of POSIX standard (1003.1-2017?), similar to how
|> C99 is recommended as the suckless C standard.
Regarding 2017 POSIX says
POSIX.1-2008, POSIX.1-2017, and Single UNIX Specification, Version 4
_POSIX_VERSION == 200809L, plus (if the XSI option is
supported) _XOPEN_UNIX and
_XOPEN_VERSION == 700
Note that _POSIX_VERSION did not change in POSIX.1-2017 as it
was technically identical to POSIX.1-2008 with its two
technical corrigenda applied.
|About this, on
|
|
https://suckless.org/coding_style/
|
|POSIX.1-2008 is recommended, but in the context of "C features". It
|should maybe be expanded as the recommended version of POSIX beyond
|just C.
And, fwiw..
For make files ipersonally and in the past .. even generated them
via perl (completely that is); today the "big" published thing
still does so with awk etc (inference rules i never got truly
right, but, if i do, they then show limitations at times (certain
flags needed for certain files, or what)). *But* i started to
rarely use constructs like ?= in certain small things (ie i *want*
some make flags, but the user *wants* to add additions, so mostly
optimization and debug one can pass in to the makefile to the
outside), where there shall be nothing but a makefile.
That += this thread was about in particular seems to be pretty
portable, as i think in practice you end up with only GNU make,
(Free|Net)BSD make and OpenBSD make.
Sure, Solaris stuff cannot, but on the Solaris systems i can get
my hands on there is always GNU make installed.
du=ich
du+=wir
bla:
echo $(du)
works everywhere except for
$ /usr/ccs/bin/make -f .x.make
echo ich
ich
$ /usr/xpg4/bin/make -f .x.make
echo ich
ich
$ /opt/developerstudio12.6/bin/dmake -f .x.make
dmake: defaulting to parallel mode.
See the man page dmake(1) for more information on setting up the .dmakerc file.
unstable11s --> 1 job
echo ich
unstable11s --> Job output
echo ich
ich
But this works:
$ gmake --version; echo; gmake -f .x.make
GNU Make 3.82
Built for sparc-sun-solaris2.9
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
echo ich wir
ich wir
2010 is quite a bit of time.
--End of <4ltqm5qhvjo5nog4x7ywaktop3p7dctpmtey7svjtdkciptkt4_AT_2khst7ql6avd>
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
Received on Mon Sep 23 2024 - 22:06:17 CEST