[Git][ghc/ghc][wip/hadrian-windows-bindist-cross] hadrian: Don't pass LDFLAGS as a --configure-arg to cabal configure
Matthew Pickering (@mpickering)
gitlab at gitlab.haskell.org
Fri Aug 25 14:47:46 UTC 2023
Matthew Pickering pushed to branch wip/hadrian-windows-bindist-cross at Glasgow Haskell Compiler / GHC
Commits:
eda0a2be by Matthew Pickering at 2023-08-25T15:46:00+01:00
hadrian: Don't pass LDFLAGS as a --configure-arg to cabal configure
We don't have anything sensible to set LDFLAGS to because the "linker"
flags we have are actually flags we pass to the C compiler when it's
used as a linker.
Likewise stop passing -gcc-options which mixed together linker flags and
non-linker flags. There's no guarantee the C compiler will accept both
of these in each mode.
- - - - -
1 changed file:
- hadrian/src/Settings/Builders/Cabal.hs
Changes:
=====================================
hadrian/src/Settings/Builders/Cabal.hs
=====================================
@@ -191,11 +191,8 @@ configureArgs cFlags' ldFlags' = do
, cFlags'
]
ldFlags = ldArgs <> ldFlags'
- cldFlags <- unwords <$> (cFlags <> ldFlags)
mconcat
[ conf "CFLAGS" cFlags
- , conf "LDFLAGS" ldFlags
- , not (null cldFlags) ? arg ("--gcc-options=" ++ cldFlags)
, conf "--with-iconv-includes" $ arg =<< getSetting IconvIncludeDir
, conf "--with-iconv-libraries" $ arg =<< getSetting IconvLibDir
, conf "--with-gmp-includes" $ arg =<< getSetting GmpIncludeDir
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/eda0a2bea4ab630f6df1d76fd9779dea2ad589e9
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/eda0a2bea4ab630f6df1d76fd9779dea2ad589e9
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/20230825/9a0f47f5/attachment-0001.html>
More information about the ghc-commits
mailing list