https://bugs.winehq.org/show_bug.cgi?id=52419
--- Comment #7 from nekoNexus@protonmail.ch --- I reset the majority of these variables in the PKGBUILD, and I don't deviate that much from your own variables either, so I'm not sure what the issue is exactly? Maybe because I specified my CPU architecture specifically? (Which is still x86_64 based)
CARCH="znver2" CHOST="x86_86-pc-linux-gnu"
#-- Compiler and Linker Flags export CC=clang export CXX=clang++ export LD="/usr/bin/ld.lld" export AR="/usr/bin/llvm-ar" export NM="/usr/bin/llvm-nm" export AS="/usr/bin/llvm-as" export RANLIB="/usr/bin/llvm-ranlib" export STRIP="/usr/bin/llvm-strip" export OBJCOPY="/usr/bin/llvm-objcopy"
export OBJC=clang
#CPPFLAGS="" CFLAGS="-march=znver2 -mtune=znver2 -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall \ -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ -fstack-clash-protection -fcf-protection" CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" LDFLAGS="-Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now" RUSTFLAGS="-C opt-level=3 -C target-cpu=native" #-- Make Flags: change this for DistCC/SMP systems MAKEFLAGS="-j$(($(nproc)+1))" #-- Debugging flags ## The "-fvar-tracking-assignments" flag is for GCC #DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CFLAGS="-g" #DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g" #DEBUG_RUSTFLAGS="-C debuginfo=2"