mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Fixed build due to clang segfaults
This commit is contained in:
parent
28f40045e2
commit
c4b969693f
1 changed files with 4 additions and 4 deletions
8
PKGBUILD
8
PKGBUILD
|
|
@ -134,10 +134,10 @@ build() {
|
|||
# LTO needs more open files
|
||||
ulimit -n 4096
|
||||
|
||||
# -fno-plt with cross-LTO causes obscure LLVM errors
|
||||
# LLVM ERROR: Function Import: link error
|
||||
#CFLAGS="${CFLAGS/-fno-plt/}"
|
||||
#CXXFLAGS="${CXXFLAGS/-fno-plt/}"
|
||||
# march cannot be tuned, otherwise clang segfaults
|
||||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
|
||||
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
|
||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
||||
|
||||
xvfb-run -a -n 97 -s "-screen 0 1600x1200x24" ./mach build
|
||||
./mach buildsymbols
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue