Add rules for statically linking the standard library in
authorLuke Lau <luke_lau@icloud.com>
Sat, 9 Nov 2019 18:15:38 +0000 (18:15 +0000)
committerLuke Lau <luke_lau@icloud.com>
Sat, 9 Nov 2019 18:28:48 +0000 (18:28 +0000)
commit894c2f2dcce94febb19d49af15c49b676ae78a98
tree8b0221d8e8f3f52fc00857062d0a09e4b21bc51a
parent73c0a2461c164d776e949e17f344e05dd9f6a4a2
Add rules for statically linking the standard library in

If statically linking in the Makefile, we need to make sure that our
putchard symbol/function doesn't get stripped out, as GHC passes the
-dead_strip flag to the linker to remove any unused functions. Since
nothing directly calls putchard in our program, it will get stripped out
unless we specify that we want to export it. We can use an export list
to indicate that we still want the symbol. (On Linux, you might need to
remove the underscore from _putchard. )
.gitignore
Makefile
stdlib.syms [new file with mode: 0644]