CONFIGURE: Fix raspberry pi cross-compilation

This commit is contained in:
Thanasis Antoniou 2020-04-05 21:12:55 +03:00
parent 4f98a64670
commit 507280c2d1

2
configure vendored
View File

@ -3183,6 +3183,7 @@ if test -n "$_host"; then
_port_mk="backends/platform/dingux/dingux.mk"
;;
raspberrypi)
_libcurlpath=$RPI_ROOT/usr/bin
# This is needed because the official cross compiler doesn't have multiarch enabled
# but Raspbian does.
# Be careful as it's the linker (LDFLAGS) which must know about sysroot.
@ -3193,6 +3194,7 @@ if test -n "$_host"; then
append_var LDFLAGS "-Xlinker --rpath-link=$RPI_ROOT/lib/arm-linux-gnueabihf"
append_var LDFLAGS "-Xlinker --rpath-link=$RPI_ROOT/opt/vc/lib"
append_var LDFLAGS "-L$RPI_ROOT/opt/vc/lib"
append_var CXXFLAGS "-isystem $RPI_ROOT/usr/include/arm-linux-gnueabihf"
# This is so optional OpenGL ES includes are found.
append_var CXXFLAGS "-I$RPI_ROOT/opt/vc/include"
_savegame_timestamp=no