package/libxslt: fix bfin compile
authorJörg Krause <joerg.krause@embedded.rocks>
Wed, 21 Sep 2016 20:21:07 +0000 (22:21 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 21 Sep 2016 20:29:07 +0000 (22:29 +0200)
commit3d0ade55428a47a52656eec965dd7b8a81894073
treef159c1e81d6d13feab6928ae23454f4b5929b90e
parent0cd90001039c474319c00c0c0726f69816bc2188
package/libxslt: fix bfin compile

Fixes:
http://autobuild.buildroot.org/results/df4/df4bf247c92847024dff88ce58a5f47343f06258/
http://autobuild.buildroot.org/results/b33/b33f34dc23f7429928d7d0b1478e71d8e7fffed2/
http://autobuild.buildroot.org/results/cad/cad02570ec039511b9495e82d98439e9f0724b37/

And many more.

A GCC bug is triggered when the compiler is run with an optimization level
'-Os/-O2/-O3' for the Blackfin architecture:

```
error: unable to find a register to spill in class 'CCREGS'
```

Workaround this bug by forcing an optimization level of '-O1' when building
libxslt for the Blackfin architecture.

See GCC bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311

[Peter: add reference to autobuilders failures]
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libxslt/libxslt.mk