]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
mesa3d: use -mno-compact-eh for Code Sourcery MIPS
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Tue, 31 May 2016 10:15:55 +0000 (11:15 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 31 May 2016 19:10:42 +0000 (21:10 +0200)
commite032a29604e843c8adc551d5ceb3c45bc7715b4d
tree34727dff161a7a0aeb96648e12c871017f51b499
parent019b22f8fa9742c80144b7d7970d319ae798c5ff
mesa3d: use -mno-compact-eh for Code Sourcery MIPS

mesa3d doesn't like the new compressed exception handling of the Code
Sourcery MIPS toolchain and it fails to compile with an error like this
one:

/br/output/host/opt/ext-toolchain/bin/../lib/gcc/mips-linux-gnu/5.3.0/../../../../mips-linux-gnu/bin/ld:
../../../../src/mesa/.libs/libmesagallium.a(ir_to_mesa.o):
.eh_frame_entry not in order
/br/output/host/opt/ext-toolchain/bin/../lib/gcc/mips-linux-gnu/5.3.0/../../../../mips-linux-gnu/bin/ld:
final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status

Using -mno-compact-eh fixes the problem.

Fixes:

  http://autobuild.buildroot.net/results/3cd/3cd81c57c51c0963ee6f4d9b814989460bb35316/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
[Thomas: improve comment in code.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mesa3d/mesa3d.mk