Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#30542 closed enhancement (worksforme)

gcc45 should include --enable-plugin and --enable-lto options

Reported by: Veence (Vincent) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: options Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: gcc45

Description

The gcc45 (and 46) build should by default activate --enable-plugin and --enable-lto options. The latter triggers link time optimization that can be used to further optimize binaries. Both are required to build dragonegg.

Also gcc46 should be updated to 4.6.1 instead of the last ß-version.

Attachments (1)

patch-Portfile-gcc45-dragonegg.diff (2.6 KB) - added by Veence (Vincent) 13 years ago.
Patch to enable plug-in and lto in gcc45 needed by dragonegg

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by Veence (Vincent)

Also, I forgot, but the Portfile should also include a post-destroot command that copies the file in ${worksrcdir}/gcc/config/darwin-sections.def into ${destroot}${prefix}/gcc45/gcc/${arch}-apple-darwinXX/4.5.3/plugin/include/config (XX: version of darwin).

Changed 13 years ago by Veence (Vincent)

Patch to enable plug-in and lto in gcc45 needed by dragonegg

comment:2 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Vince:

  • Make a separate diff for white space changes (line 90).
  • I'm am not that familiar with gcc45, did you mean/need to remove the java language?

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Cc: jeremyhu@… added; mww@… removed

--enable-lto was added in r88802, but #32863 indicates that it should only have been added for x86_64, at least in 4.5. That has been corrected for gcc45 in r90572. Someone should probably test gcc46 and gcc47.

That just leaves --enable-plugin, which has not been added. But presumably the dragonegg ports work, so is it really needed?

comment:4 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

There doesn't seem to be an --enable-plugin configure option in gcc-4.6.2:

~/src/macports/dports/lang/gcc46/work/gcc-4.6.2 $ ./configure --help | grep plugin

comment:5 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Oh I see... It's in gcc/configure, and it's on by default anyways.

Note: See TracTickets for help on using tickets.