New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #25718 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

arm-elf-gcc needs --disable-__cxa_atexit configure option

Reported by: billy@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: haspatch Cc:
Port: arm-elf-gcc

Description

gcc 4 defaults to enable cxa_atexit. This only needed by glibc and shouldn't be used for newlib. It will cause "undefined reference to `cxa_atexit'" errors. I have attached a patch for the portfile.

Attachments

Portfile-arm-elf-gcc.diff (312 bytes) - added by billy@… 3 years ago.
Portfile diff with '--disable-cxa_atexit' added.

Change History

Changed 3 years ago by billy@…

Portfile diff with '--disable-cxa_atexit' added.

comment:1 Changed 3 years ago by jmr@…

  • Keywords haspatch added
  • Port set to arm-elf-gcc

Please remember to fill in the Port field.

comment:2 Changed 2 years ago by jmr@…

So AIUI, you can use -fno-use-cxa-atexit at compile time to get the same effect, but since users of this port will generally be using newlib, this should be made the default.

comment:3 Changed 2 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.