bugmake - Bugs: bug #63668, Default value of CXX on BSD OS's

 
 

bug #63668: Default value of CXX on BSD OS's

Submitter:  None
Submitted:  Sun 15 Jan 2023 03:00:15 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.4 Operating System:  POSIX-Based
Fixed Release:  4.4.1 Triage Status:  Small Effort
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 20 Feb 2023 12:43:46 AM UTC, comment #4: 

Thanks.

Brad Smith <brad0>
Sun 19 Feb 2023 05:32:10 PM UTC, comment #3: 

I pushed a fix for this.

Paul D. Smith <psmith>
Group administrator
Fri 27 Jan 2023 07:42:04 PM UTC, comment #2: 

I wonder if we shouldn't be using configure to locate the C++ compiler.  Of course it could be the case that the compiler is visible at the time make is built but not at the time make is invoked; we wouldn't use the full pathname of course just the program name.

POSIX mandates that the name of the C compiler be "cc" but I don't think there's any such mandate about the name of the C++ compiler unfortunately.

Paul D. Smith <psmith>
Group administrator
Fri 27 Jan 2023 06:58:47 PM UTC, comment #1: 

ping.

Brad Smith <brad0>
Sun 15 Jan 2023 03:00:15 AM UTC, original submission:  

src/default.c currently defaults CXX to g++. FreeBSD / OpenBSD no longer ship GCC as a system compiler.

I attached a diff. I don't know if this is the best way of doing things or not. FreeBSD / OpenBSD / macOS use Clang. NetBSD and DragonFly all provide c++ for their C++ compiler so use c++ for all of them.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #54225:  make_cxx.diff added by brad0 (431B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by brad0 (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-02-19 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Operating SystemNone POSIX-Based
        Fixed ReleaseNone 4.4.1
        Triage StatusNone Small Effort
    2023-01-15 brad0 Attached File- Added make_cxx.diff, #54225

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code