Open source components of 10.4.11: https://opensource.apple.com/release/mac-os-x-10411ppc.html
curl -s https://opensource.apple.com/tarballs/xnu/xnu-792.24.17.tar.gz | gunzip | strings | grep posix_spawn
does not yield any hits.
Here is a reference to ninja not building on Tiger due to missing posix_spawn: https://trac.macports.org/attachment/ticket/58099/patch-tiger-no-posix-spawn-2.diff
This ticket mentions that posix_spawn is available in Leopard (10.5): https://trac.macports.org/ticket/41519
http://newosxbook.com/MOXiI.pdf discusses fork()
vs posix_spawn()
.
gcc-7 -std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fPIC -O2 -fvisibility=hidden -c build/shell.c -o build/shell.o -I build
gcc-7 -rdynamic -std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fPIC -O2 -fvisibility=hidden -o build/janet build/janet.o build/shell.o -lm -lpthread -ldl
/usr/bin/ld: unknown flag: -export_dynamic
collect2: error: ld returned 1 exit status
make: *** [build/janet] Error 1