Patch to fix some problems:
diff --git a/PKGBUILD b/PKGBUILD
index ef79944..3dcab50 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,15 +23,12 @@ build() {
# Working around bug 4436: https://github.com/joncampbell123/dosbox-x/issues/4436
# We need to deactivate -Werror=format-security
- export CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
- -Wp,-D_FORTIFY_SOURCE=2 -Wformat \
- -fstack-clash-protection -fcf-protection"
- export CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
+ export CFLAGS="${CFLAGS/-Werror=format-security/}"
+ export CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
export LDFLAGS="${LDFLAGS//,--as-needed}"
- chmod +x configure
./configure --enable-core-inline --enable-debug --enable-avcodec --prefix=/usr --enable-sdl2
- make -j$(nproc)
+ make
}
- Remove
-Werror=format-security
from flags rather than overriding all the flags. - Remove unnecessary chmod.
- Remove -j$(nproc), that flag belong to
MAKEFLAGS
variable in user'smakepkg.conf
.
Pinned Comments