maintainer-approval requested: [Bug 271928] lang/ghc: 'make configure' fails with bad --target argument if lang/gcc is installed. : [Attachment 242878] [patch] explicitly use base cc (clang) - v0

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 19 Jun 2023 16:16:56 UTC
John Hein <jcfyecrayz@liamekaens.com> has asked freebsd-haskell (Nobody)
<haskell@FreeBSD.org> for maintainer-approval:
Bug 271928: lang/ghc: 'make configure' fails with bad --target argument if
lang/gcc is installed.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271928

Attachment 242878: [patch] explicitly use base cc (clang) - v0
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242878&action=edit



--- Comment #3 from John Hein <jcfyecrayz@liamekaens.com> ---
Created attachment 242878
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242878&action=edit
[patch] explicitly use base cc (clang) - v0

During pre-configure, explicitly specify base CC=cc - cc is clang now in all
supported major versions of FreeBSD (even powerpc these days I think, but I
have not confirmed that).

This works around whatever bootstrap issue is going on with gcc (possibly
FreeBSD specific, but not known at this time).

With this patch, poudriere now builds lang/ghc if lang/gcc is installed (tested
on 12-amd64/stable).