blob: 0c2b32a9dc7e40bcc0f1f3bfe8e65bfaa5d814cd (
plain)
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
|
# the following tests fail
# FAIL: gdimagecopyresampled/bug00201
# FAIL: gdimagegrayscale/basic
# FAIL: gdimageline/gdimageline_bug5
# FAIL: gdimagerotate/bug00067
#
# at least the critical ones go away with SSE-based math
# see https://github.com/libgd/libgd/issues/242#issuecomment-228959163
#
# we enable this ATM only for pentium4, as it seems it doesn't solve anything
# for i686
# pentium4-specific
if [ "${CARCH}" = "pentium4" ]; then
eval "$(
declare -f build | \
sed '
/configure/ i \
export CFLAGS="$CFLAGS -msse -mfpmath=sse"
'
)"
fi
# test suite assumes fpmath=sse when compring test results, disable tests
# for non-pentium4 builds
if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
unset check
fi
|