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)
commit66e6b8bc85dfe4ec227fe350c8d9b7f871cc2670
tree8b0221d8e8f3f52fc00857062d0a09e4b21bc51a
parent7ce286e1652909691b4b96ea53a2f1358c8cbc24
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]