summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2022-03-20 03:32:12 -0400
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-26 01:20:06 +0700
commit1adfae93f82c89311439d5dd89de07897fa7f051 (patch)
treeb3aaf2f0075a64a92d1202a0f97da4413300323d /graphics
parent574301d2e2b4e281b58c8dfd61389a52425f5e92 (diff)
downloadslackbuilds-1adfae93f82c89311439d5dd89de07897fa7f051.tar.gz
slackbuilds-1adfae93f82c89311439d5dd89de07897fa7f051.tar.xz
graphics/luminance-hdr: Fix 32-bit build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/luminance-hdr/luminance-hdr.SlackBuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/luminance-hdr/luminance-hdr.SlackBuild b/graphics/luminance-hdr/luminance-hdr.SlackBuild
index 3bf2255295..027d2b07ea 100644
--- a/graphics/luminance-hdr/luminance-hdr.SlackBuild
+++ b/graphics/luminance-hdr/luminance-hdr.SlackBuild
@@ -25,6 +25,7 @@
# 20220222 bkw: Modified by SlackBuilds.org: fix build on 15.0,
# by upgrading to v2.6.0. Also actually strip the binaries, and
# get rid of INSTALL from the doc dir.
+# 20220320 bkw: fix build on 32-bit.
cd $(dirname $0) ; CWD=$(pwd)
@@ -83,11 +84,14 @@ find -L . \
# (fails to link libmvec: "undefined reference to `_ZGVbN4vv_powf'" etc)
export CXX=clang++
+# 20220320 bkw: for some reason, the -latomic is needed on 32-bit x86.
+# it does no harm on x86_64.
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_LINK_FLAGS="-latomic" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make