Raspberry Pi includes moved from rpi.patch to CXXFLAGS for armv6h

This commit is contained in:
Srđan Tot 2013-06-08 11:19:00 +02:00
parent 9d8a183b38
commit 5fb3f9f3db

View file

@ -60,7 +60,9 @@ build() {
export QTDIR="${srcdir}"/${_pkgfqn}
export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
export CXXFLAGS=${CXXFLAGS}" -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
if [ "$CARCH" == 'armv6h' ]; then
export CXXFLAGS=${CXXFLAGS}" -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
fi
sed -i "s|-O2|${CXXFLAGS}|" qtbase/mkspecs/common/{g++,gcc}-base.conf
sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" qtbase/mkspecs/common/gcc-base-unix.conf