Opened 4 years ago

Closed 23 months ago

#4574 closed defect (fixed)

Enable Link Time Optimizations

Reported by: komzpa Owned by: komzpa
Priority: medium Milestone: PostGIS 3.3.0
Component: postgis Version: master
Keywords: Cc:


-flto flag for compiler and linker enables link time optimization.

Inlines work further, -Werror sees through function calls.

Change History (8)

comment:2 by Algunenano, 4 years ago

Resolution: fixed
Status: closedreopened

This broke both Windows ( and FreeBSD builds ( Maybe not all platforms are ready to have it on by default.

Also, I think it needs to be added to CXXFLAGS too, since wagyu is built with them.

comment:3 by robe, 4 years ago

duh it said right there too LTO :)

How could I have missed that.

Anyrate related tickets - #4586 (for FreeBSD) , #4583 for windows

comment:4 by komzpa, 3 years ago

Remove the line from the changelog

comment:5 by pramsey, 3 years ago

This ready to close?

comment:7 by robe, 23 months ago

Milestone: PostGIS Fund MePostGIS 3.3.0

comment:8 by Regina Obe <lr@…>, 23 months ago

Resolution: fixed
Status: reopenedclosed

In 6a6cc54/git:

Merge remote-tracking branch 'konturio/configure-enable-lto-option'
Require —with-lto config to enable LTO.
Closes #4574 for PostGIS 3.3.0
Closes #5121 for PostGIS 3.3.0

Note: See TracTickets for help on using tickets.