Skip to content
Discussion options

You must be logged in to vote

See the gawk manual here:
https://www.gnu.org/software/gawk/manual/html_node/PC-Compiling.html

Though it's outdated and incomplete. The procedure that works in w46dk right now looks like this:

$ cp pc/* .
$ sed -i /HAVE_STRCASECMP/d config.h
$ make -j gawk.exe CC=gcc O=.o CF="-std=gnu99 -fpermissive -DHAVE_STRNCASECMP -DHAVE_STRCASECMP" OPT=-O2 OBJ=popen.o LNK=LMINGW32 LF= LF2=-lws2_32 RSP= 

sed is to fix a bug in config.h. -std=gnu99 is because it's not C23-compatible. -fpermissive is to work around more bugs in the gawk source that modern compilers no longer tolerate.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@janko-jj
Comment options

Answer selected by Peter0x44
Comment options

You must be logged in to vote
2 replies
@janko-jj
Comment options

@janko-jj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants