Files
Alex Tunstall e805baacb7 haskell.{compiler,packages}.microhs: init
The package set is built entirely from source using the stdenv and Hugs.

This also replaces the recently added microhs package, which was built
from pre-generated compiler output.

Co-authored-by: sternenseemann <sternenseemann@systemli.org>
2026-04-09 22:33:33 +01:00

22 lines
606 B
Diff

commit beaea6f66e4f53d617418a4c155b9a14e2c9327e
Author: Alex Tunstall <alex@tunstall.xyz>
Date: Fri Mar 20 06:52:08 2026 +0000
Add -lm to default link flags
MicroHs should always link with -lm because its RTS requires it.
diff --git a/src/MicroHs/Flags.hs b/src/MicroHs/Flags.hs
index e20797c6..df89730e 100644
--- a/src/MicroHs/Flags.hs
+++ b/src/MicroHs/Flags.hs
@@ -54,7 +54,7 @@ defaultFlags dir = Flags {
doCPP = False,
cppArgs = [],
cArgs = [],
- lArgs = [],
+ lArgs = ["-lm"],
compress = False,
base64 = False,
buildPkg = Nothing,