summaryrefslogtreecommitdiffstats
path: root/x11-libs/wine/BUILD
blob: b748902061763d91ea144a3eb89bf3f6efbe0b71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# touch non-existant file
touch programs/winetest/tests.rc &&


CFLAGS=${CFLAGS/-O3/-O2} &&
CXXFLAGS=${CXXFLAGS/-O3/-O2} &&

#
# Fixes http://bugs.winehq.com/show_bug.cgi?id=17406
#
if grep -q "\-O3" <<< $CFLAGS; then
  CFLAGS="-fno-guess-branch-probability $CFLAGS"      &&
  CXXFLAGS="-fno-guess-branch-probability $CXXFLAGS"
fi  &&

#
# Fixes http://bugs.winehq.org/show_bug.cgi?id=22316
#
if [[ ${SMGL_COMPAT_ARCHS[1]} == "ia32" ]] && $(grep -q "mfpmath=sse" <<< $CFLAGS); then
  CFLAGS="-mincoming-stack-boundary=2 $CFLAGS" &&
  CXXFLAGS="-mincoming-stack-boundary=2 $CXXFLAGS"
fi &&

OPTS="${OPTS} ${WINE64}" &&

default_build                     &&

if is_depends_enabled $SPELL docbook-utils; then
  make -C documentation
fi