summaryrefslogtreecommitdiff
path: root/extra/java11-openjdk/PKGBUILD
blob: b1d50745a1917b0ffe9e51256972b5436eb9bc91 (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
29
30
31
# i486-specific
if [ "${CARCH}" = "i486" ]; then
  _JARCH=i386
fi

# pentium4-specific
if [ "${CARCH}" = "pentium4" ]; then
  _JARCH=x86
  _DOC_ARCH=x86

  # make sure -no-plt is set also for pentium4
  eval "$(
    declare -f build | \
      sed '
         /CARCH/s/i686/pentium4/
      '
  )"

  # force 4-byte stack alignment on SSE aptimized systems, see FS32#75
  eval "$(
    declare -f build | \
      sed '
        /unset CFLAGS/ i \
          _CFLAGS="${_CFLAGS} -mincoming-stack-boundary=2" \
          _CXXFLAGS="${_CXXFLAGS} -mincoming-stack-boundary=2"
      '
  )"

fi

_imgdir="${_imgdir//--/-${_JARCH}-}"