Opened 10 years ago

Closed 10 years ago

#25718 closed defect (fixed)

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


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 (1)

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

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by billy@…

Attachment: Portfile-arm-elf-gcc.diff added

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

comment:1 Changed 10 years ago by jmroot (Joshua Root)

Keywords: haspatch added
Port: arm-elf-gcc added

Please remember to fill in the Port field.

comment:2 Changed 10 years ago by jmroot (Joshua Root)

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 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.