[Bug 273091] lang/ghc 9.4.6 fails to build without the addition of iconv configure flags if gcc is found and used instead of default LLVM

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 14 Aug 2023 22:35:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273091

--- Comment #21 from Kevin Reinholz <kreinholz@gmail.com> ---
Adding the following lines to /usr/ports/lang/ghc/Makefile force it to select
LLVM over GCC (when GCC is installed on the system), and avoid my reported
error:

CC=clang
CXX=clang++
CPP=clang-cpp

I just sandwiched these additional options after line 32 between 

SHEBANG_FILES=          ${BOOT_SCRIPT}

OPTIONS_DEFINE?=        DYNAMIC GMP PROFILE DOCS

I recognize this is still hacky, but it does prevent picking up gcc if it's
installed, and allows ghc-9.4.6 to build successfully using base system LLVM.

-- 
You are receiving this mail because:
You are the assignee for the bug.