[Bug 271928] lang/ghc: 'make configure' fails with bad --target argument if lang/gcc is installed.

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 23 Jun 2023 10:43:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271928

--- Comment #6 from Mark Evenson <evenson.not.org@gmail.com> ---
I had to patch the `pre-install` target's configure with the CXX compiler in
order to get this build, otherwise I ran into problems finding libstdc++,
otherwise:

[…]
configure:7672: $CC is not gcc; assuming it's a reasonably new C compiler       
configure:7678: checking whether CC supports -no-pie                            
configure:7688: result: no                                                      
configure:7694: checking for extra options to pass gcc when compiling via C     
configure:7708: result:                                                         
configure:7716: checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and
CPPFLAGS                                                     
configure:7810: result: done                                                    
configure:7815: checking Setting up CONF_CC_OPTS_STAGE0,
CONF_GCC_LINKER_OPTS_STAGE0, CONF_LD_LINKER_OPTS_STAGE0 and
CONF_CPP_OPTS_STAGE0    
configure:7909: result: done                                                    
configure:7914: checking Setting up CONF_CC_OPTS_STAGE1,
CONF_GCC_LINKER_OPTS_STAGE1, CONF_LD_LINKER_OPTS_STAGE1 and
CONF_CPP_OPTS_STAGE1    
configure:8008: result: done                                                    
configure:8014: checking Setting up CONF_CC_OPTS_STAGE2,
CONF_GCC_LINKER_OPTS_STAGE2, CONF_LD_LINKER_OPTS_STAGE2 and
CONF_CPP_OPTS_STAGE2    
configure:8108: result: done                                                    
configure:8220: checking C++ standard library flavour                           
configure:8233: result: libstdc++                                               
configure:2: checking for linkage against 'stdc++'                              
configure:15: result: failed                                                    
configure:2: checking for linkage against 'stdc++ supc++'                       
configure:15: result: failed                                                    
configure:8279: error: Failed to find C++ standard library  
[…]

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