qt5-webkit: fix cross build in i686 environment
This commit is contained in:
parent
95986b8512
commit
568e673cc5
1 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,14 @@ do_configure() {
|
|||
# Patch for QtWebProcess LFLAGS
|
||||
sed -i ${wrksrc}/Source/WebKit2/WebProcess.pro \
|
||||
-e"/TARGET = QtWebProcess/i QMAKE_LFLAGS = $LDFLAGS"
|
||||
if [ "$XBPS_ARCH" == "i686" -a -n "$CROSS_BUILD" ]; then
|
||||
# Patch for i686 build environment: don't add i686 flags when cross compiling
|
||||
sed -i ${wrksrc}/Tools/Scripts/webkitdirs.pm \
|
||||
-e 's;"-march=pentium4 -msse2 -mfpmath=sse " . ;;'
|
||||
sed -i ${wrksrc}/Tools/qmake/mkspecs/features/unix/default_post.prf \
|
||||
-e 's;\(QMAKE_CFLAGS +=\) -msse2 -mfpmath=sse;\1;' \
|
||||
-e 's;\(QMAKE_CXXFLAGS +=\) -msse2 -mfpmath=sse;\1;'
|
||||
fi
|
||||
qmake PREFIX=/usr LIB=/usr/lib QMAKE_LFLAGS_USE_GOLD= ${wrksrc}
|
||||
}
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in a new issue