[Git][ghc/ghc][wip/toolchain-selection] Interpolate LeadingUnderscore in distrib/configure.ac.in

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Tue Jun 27 18:06:25 UTC 2023



Ben Gamari pushed to branch wip/toolchain-selection at Glasgow Haskell Compiler / GHC


Commits:
537b9c4d by Ben Gamari at 2023-06-27T14:05:56-04:00
Interpolate LeadingUnderscore in distrib/configure.ac.in

- - - - -


3 changed files:

- distrib/configure.ac.in
- hadrian/bindist/Makefile
- mk/project.mk.in


Changes:

=====================================
distrib/configure.ac.in
=====================================
@@ -57,10 +57,12 @@ if test "$target" != "$host" ; then
                           #   configure: error: cannot run C compiled programs.
                           #   If you meant to cross compile, use `--host'.
 fi
+LeadingUnderscore="@LeadingUnderscore@"
 CrossCompilePrefix="@CrossCompilePrefix@"
 TargetPlatformFull="${target}"
 TablesNextToCode="@TablesNextToCode@"
 
+AC_SUBST(LeadingUnderscore)
 AC_SUBST(CrossCompiling)
 AC_SUBST(CrossCompilePrefix)
 AC_SUBST(TargetPlatformFull)


=====================================
hadrian/bindist/Makefile
=====================================
@@ -1,7 +1,10 @@
 MAKEFLAGS += --no-builtin-rules
 .SUFFIXES:
 
+# Configuration from the source distribution's configure script.
 include ./mk/project.mk
+
+# Configuration from the binary distribution's configure script.
 include ./config.mk
 
 .PHONY: default


=====================================
mk/project.mk.in
=====================================
@@ -123,11 +123,6 @@ BuildVendor_CPP         = @BuildVendor_CPP@
 #
 ################################################################################
 
-# Leading underscores on symbol names in object files
-# Valid options: YES/NO
-#
-LeadingUnderscore=@LeadingUnderscore@
-
 # Pin a suffix on executables? If so, what (Windows only).
 exeext0=@exeext_host@
 exeext1=@exeext_target@



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/537b9c4d285cfdcfe7c9ec5e525edbf744426ddb

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/537b9c4d285cfdcfe7c9ec5e525edbf744426ddb
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230627/233708de/attachment-0001.html>


More information about the ghc-commits mailing list