Opened 5 years ago

Closed 3 years 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:

Description

-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, 5 years ago

Resolution: fixed
Status: closedreopened

This broke both Windows (https://winnie.postgis.net:444/job/PostGIS_EDB_Regress_winnie/10076/console) and FreeBSD builds (https://debbie.postgis.net/view/PostGIS/job/PostGIS_Worker_Run/label=bessie/1744/console). 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, 5 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, 4 years ago

Remove the line from the changelog

comment:5 by pramsey, 4 years ago

This ready to close?

comment:7 by robe, 3 years ago

Milestone: PostGIS Fund MePostGIS 3.3.0

comment:8 by Regina Obe <lr@…>, 3 years 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.