diff options
author | zulc22 (Scott) | 2022-02-05 03:19:06 -0800 |
---|---|---|
committer | zulc22 (Scott) | 2022-02-05 03:19:06 -0800 |
commit | a29872f1c3d1982ab479725e5d8914c31b2a79c6 (patch) | |
tree | 3abfabf69d8f41eebed3adeacc71b3c1c8dfd5e8 | |
parent | c98ecf81e5cb446d6923ddba6467528bce2f0312 (diff) | |
download | aur-a29872f1c3d1982ab479725e5d8914c31b2a79c6.tar.gz |
Fix compilation errors by setting standard
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -37,17 +37,11 @@ prepare () { build () { cd "${srcdir}/${pkgname}-${pkgver}" - # The original submitter used this but the project docs say to use bootstrap - #autoreconf -fvi ./bootstrap - ./configure --prefix=/usr - - # Works out of the box for me but the original submitter did this. - ## -O3 breaks compilation! - #sed -i 's/CXXFLAGS=" -O3 -Wall"/CXXFLAGS=" -O2 -Wall"/' configure - - make + # Set -std=gnu++98 so the compilation doesn't fail on modern systems. + # Some code is insecure, but I'd rather have an equivalent binary in something like a game. + make CXXFLAGS="-O2 -Wno-error -pedantic -Wextra -std=gnu++98" } package () { |