Rockbox

Tasklist

FS#12258 - Do not use -ffunction-sections -fdata-sections for mingw builds

Attached to Project: Rockbox
Opened by Andree Buschmann (Buschel) - Saturday, 03 September 2011, 13:32 GMT
Last edited by Andree Buschmann (Buschel) - Wednesday, 07 September 2011, 19:25 GMT
Task Type Patches
Category Build environment
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.9
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The attached patch changes the makefiles for plugins, codeclibs and codecs/lib/tlsf to not use '-ffunction-sections' and '-fdata-sections' for simulator builds. This removes several warnings when compiling in my environment (Ubuntu + mingw32).

This needs a review, I am not sure whether I am detecting simulator builds 100% right via "ifdef APP_TYPE".
This task depends upon

Closed by  Andree Buschmann (Buschel)
Wednesday, 07 September 2011, 19:25 GMT
Reason for closing:  Accepted
Additional comments about closing:  Submitted with r30468.
Comment by Andree Buschmann (Buschel) - Sunday, 04 September 2011, 08:30 GMT
The new version checks whether a mingw cross compiler is used. In this case '-ffunction-sections' and '-fdata-sections' is not used.
Comment by Andree Buschmann (Buschel) - Wednesday, 07 September 2011, 18:35 GMT
'-ffunction-sections' and '-fdata-sections' should be not used for cygwin as well. Therefor check for "sdl-sim".

Loading...