1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00
cde/src/cmd/INIT
Martijn Dekker 24fc1bbca9 Sanitise standards/feature macros, remove compiler/linker wrappers
The goal is to get rid of all compiler/linker wrapper scripts as
they are overridden by passing CC/LD and it should be possible to
select your compiler or linker without breaking the build. The
probing and feature testing system should set the appropriate flags
and macros. This makes some progress towards that.

src/lib/libast/features/standards:
- Eliminate the shotgun approach to standards macros on popular
  systems where the macros we we need to set are known and
  documented. The following will enable standards compliance plus
  all the available extensions:
  - Set no macros at all for any BSD system (excluding macOS).
  - Set _DARWIN_C_SOURCE on Darwin/macOS.
  - Set everything and the kitchen sink for Solaris/illumos in
    a way that enables backwards compatibility with older Solaris.
    This is unofficial, but following the standards(5) manual
    disables a lot of basic functionality that we depend on.
  - Set _GNU_SOURCE for GNU (glibc).
  - Remove the covered macros from the shotgun approach fallback.
- Add a new heuristic. _POSIX_PATH_MAX and _SC_PAGESIZE are among
  the basic macros disabled when you pass recommended standards
  macros, killing the build, so it's good to check if they compile.

src/cmd/INIT/ar.freebsd12.amd64,
src/cmd/INIT/ar.linux.i386-64:
- Removed. May cause build failures on some systems as not all 'ar'
  implementations support the U option. Plus, I can think of no
  good reason to disable deterministic mode (which always creates
  identical output) on 'ar' implementations that support it. See:
  https://groups.google.com/g/comp.unix.shell/c/LdOD1Ya0C9E/m/U6DhgHVICwAJ

src/cmd/INIT/cc.linux.*-icc,
  Removed icc wrappers. These manually source /etc/profile.d/icc.sh
  but I don't think that is the build system's job. Profile scripts
  should be run at login time and export variables we inherit
  through the environment.

src/cmd/INIT.cc.{freebsd,linux,openbsd}*:
- Removed. Should be entirely superfluous now that the standards
  feature test sets the appropriate macros.

src/cmd/INIT.cc.sol11.*:
- Removed as the standards feature test now sets the approopriate
  macros. Note the Solaris build system should now simply pass CC
  as normal instead of passing CC_EXPLICIT.
2021-12-21 06:52:16 +00:00
..
ar.ibm.risc Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
C+probe Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
cc.hp.ia64 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.hp.pa Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.hp.pa64 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.ibm.risc Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.ibm.risc.gcc Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.lynxos.i386 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
cc.lynxos.ppc Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
cc.mvs.390 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.next.i386 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.next.m68k Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.osf.alpha Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
cc.pentium4 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
cc.sco.i386 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
cc.sgi.mips2 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.sgi.mips3 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.sgi.mips3-o32 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.sgi.mips4 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.sgi.mips4-n32 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
cc.specialize Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
cc.unix.mc68k Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
cc.unixware.i386 typeset: Fix stack fencepost error, ISO C90 compat (#159) 2021-01-21 07:50:07 +00:00
crossexec.sh Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
db.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
dl.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
execrate.sh Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
filter.sh Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
gdbm.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
gdbm1.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
gdbm2.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
hello.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
hosttype.tst Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
iconv.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
iffe.sh Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
iffe.tst Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
ignore.sh Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
intl.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
ld.hp.pa Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
ldd.cygwin.i386 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
ldd.darwin Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
ldd.hp.pa Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
ldd.ibm.risc Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
ldd.lynxos Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
ldd.mvs.390 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
ldd.sgi Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
m.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
m2.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
m3.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
m4.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
m5.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
m6.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
make.probe Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
mamake.c Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
mamake.rt Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
mamake.tst Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
Mamfile package: remove a lot more unused AT&T cruft 2021-12-15 00:50:45 +01:00
mamprobe.sh Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
mkdir.sh tweak for compat with broken /bin/sh on AIX ibm.risc 2021-01-19 22:38:27 +00:00
mktest.sh Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
mprobe.sh Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
nsl.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
p.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
package.sh bin/package: more cleanups (re: 9166545a) 2021-12-18 14:47:24 +00:00
probe.win32 Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
proto.c Get rid of overcomplicated AT&T copyright/license maintenance code 2021-12-14 03:15:16 +01:00
ratz.c Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
regress.sh Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
RELEASE Various minor capitalization and typo fixes (#371) 2021-12-13 01:49:42 +01:00
rt.sh Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
silent.sh Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
socket.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
w.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
w2.c Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00