pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/ghc94



Module Name:    pkgsrc
Committed By:   pho
Date:           Tue Jan 24 06:20:10 UTC 2023

Modified Files:
        pkgsrc/lang/ghc94: bootstrap.mk

Log Message:
Bootkits for FreeBSD must also be built without -fsplit-sections


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/ghc94/bootstrap.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/ghc94/bootstrap.mk
diff -u pkgsrc/lang/ghc94/bootstrap.mk:1.2 pkgsrc/lang/ghc94/bootstrap.mk:1.3
--- pkgsrc/lang/ghc94/bootstrap.mk:1.2  Tue Jan 24 02:49:26 2023
+++ pkgsrc/lang/ghc94/bootstrap.mk      Tue Jan 24 06:20:10 2023
@@ -1,4 +1,4 @@
-# $NetBSD: bootstrap.mk,v 1.2 2023/01/24 02:49:26 pho Exp $
+# $NetBSD: bootstrap.mk,v 1.3 2023/01/24 06:20:10 pho Exp $
 # -----------------------------------------------------------------------------
 # Select a bindist of bootstrapping compiler on a per-platform basis. See
 # ./files/BOOTSTRAP.md for details.
@@ -236,7 +236,15 @@ CONFIGURE_ARGS.boot+=      --with-bindist-pre
 
 # Hadrian arguments to use while building a bootkit.
 HADRIAN_ARGS.boot=     ${HADRIAN_ARGS.common}
-HADRIAN_ARGS.boot+=    --flavour=bootkit+split_sections --docs=none
+HADRIAN_ARGS.boot+=    --docs=none
+.if ${OPSYS} == "FreeBSD"
+#   -fsplit-sections appears to corrupt the symbol table of stage 1
+#   libHSghc-*.a(Instances.o) and cause a linkage failure. Either Clang or
+#   LLD is doing something wrong, probably the former.
+HADRIAN_ARGS.boot+=    --flavour=bootkit
+.else
+HADRIAN_ARGS.boot+=    --flavour=bootkit+split_sections
+.endif
 
 # Determine the version of GHC being used to build the bootkit. We will
 # need this to bootstrap Hadrian.



Home | Main Index | Thread Index | Old Index