Commit Graph

12 Commits

Author SHA1 Message Date
Giacomo Tesio bab840a411 gcc: build works again 2020-09-10 22:39:10 +02:00
Giacomo Tesio f598a59d81 gcc: remove `--posixly`, add `-9`
The GCC option `--posixly` was introduced to enable the compilation
of POSIX code in Jehanne, assuming that building native C code
would have been the default.

However since

- GCC is itself a POSIX program and most programmers that use it
  assume a POSIX environment
- GCC is used as a cross compiler to build Jehanne from POSIX systems
- C++ will never be native in Jehanne (too much complexity for a
  system that want to be simple) and thus will always require a
  POSIX environment to build POSIX C++ code

I decided to invert the logic.

Thus now by default GCC, by default, will build POSIX programs,
loading required libraries and headers from /posix subdirectories.

The new option `-9` will remove such POSIX stuff when compiling
native C programs.
2020-09-06 12:22:37 +02:00
Giacomo Tesio 7278b664fc gcc: fix `--posixly` management in cross compiler 2020-09-02 18:52:23 +02:00
Giacomo Tesio 545076c6df gcc: introduce `--posixly` command line option to ease the compilation of POSIX software 2020-09-01 13:05:39 +02:00
Giacomo Tesio e645cbc104 gcc: LIB_SPEC includes -ljehanne instead of -lc 2020-01-13 13:09:53 +01:00
Giacomo Tesio ba1541c359 gcc: remove APW from config/jehanne.h; adjust init.sh to include it on make 2019-12-16 01:02:15 +01:00
Giacomo Tesio 5631951268 gcc cross compiler: do not add . to include paths 2019-12-11 21:46:43 +01:00
Giacomo Tesio 026c082f2a gcc: do not automatically include /posix 2019-11-24 15:51:17 +01:00
Giacomo Tesio 0c7d7e3064 gcc native: move cross compiler outside source tree 2019-11-22 07:26:24 +01:00
Giacomo Tesio 9f0c429895 gcc: add /posix/include to cross compiler toolchain 2018-11-26 02:24:46 +01:00
Giacomo Tesio 372896ff41 gcc: posix include directories under /sys/posix/ 2017-04-19 17:03:53 +02:00
Giacomo Tesio 1ba806ca1b new development tools 2016-11-25 13:41:57 +00:00