libgdiplus: fix cross-compilation error
authorSergio Prado <sergio.prado@e-labworks.com>
Fri, 18 Dec 2015 18:00:45 +0000 (16:00 -0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 18 Dec 2015 21:04:58 +0000 (22:04 +0100)
commite6dfc0c68ad70c7f933061e1f0ec2eb04909fff7
tree16daa0e6883b66323588a0aa2ac823fd4320f0d4
parent83d59c805ce96b14eabe2c47fa78adc0d8d1b2ae
libgdiplus: fix cross-compilation error

When cross-compiling with toolchains that validate things like headers
and libraries paths, we were getting errors like:

sh-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '/lib'

That's because there was an error in the configure script that was not
generating ldflags correctly, and the generated Makefile was trying to
link with -L/lib.

Also, it is necessary to pass a prefix when compiling with libjpeg and
libtiff support.

A patch has already been sent upstream.

Fixes:
http://autobuild.buildroot.org/results/58cad610b1bde68de82e44bf3c87d7bfcc1fa816/
http://autobuild.buildroot.org/results/649c258c05293fa5203d7d2c7b20a4265c2815ab/

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libgdiplus/0001-Fix-compile-error-when-cross-compiling.patch [new file with mode: 0644]
package/libgdiplus/libgdiplus.mk