summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-09-08 05:39:02 +0100
committerSam James <sam@gentoo.org>2021-09-08 05:41:10 +0100
commit60c4e1235300e9bba9f1d86512a09257f60fe640 (patch)
tree4d8a72e32bd1649109f7983d9f5197d38725bf94 /sci-visualization
parentapp-crypt/hashcat: add POCL include fix (diff)
downloadgentoo-60c4e1235300e9bba9f1d86512a09257f60fe640.tar.gz
gentoo-60c4e1235300e9bba9f1d86512a09257f60fe640.tar.bz2
gentoo-60c4e1235300e9bba9f1d86512a09257f60fe640.zip
sci-visualization/opendx: fix build with slibtool, gcc 11
Closes: https://bugs.gentoo.org/786627 Closes: https://bugs.gentoo.org/779160 Thanks-to: orbea <orbea@riseup.net> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-visualization')
-rw-r--r--sci-visualization/opendx/files/opendx-4.4.4-slibtool.patch40
-rw-r--r--sci-visualization/opendx/opendx-4.4.4-r7.ebuild6
2 files changed, 45 insertions, 1 deletions
diff --git a/sci-visualization/opendx/files/opendx-4.4.4-slibtool.patch b/sci-visualization/opendx/files/opendx-4.4.4-slibtool.patch
new file mode 100644
index 000000000000..964322aab9c6
--- /dev/null
+++ b/sci-visualization/opendx/files/opendx-4.4.4-slibtool.patch
@@ -0,0 +1,40 @@
+https://bugs.gentoo.org/779160
+
+commit 980149800b1bc9310c404dcc822d35bd725e8b3c
+Author: orbea <orbea@riseup.net>
+Date: Wed Apr 7 11:42:21 2021 -0700
+
+ build: Fix undefined references with slibtool.
+
+diff --git a/src/exec/dpexec/Makefile.am b/src/exec/dpexec/Makefile.am
+index 9f37d05..bd8aefe 100644
+--- a/src/exec/dpexec/Makefile.am
++++ b/src/exec/dpexec/Makefile.am
+@@ -33,6 +33,8 @@ libDPEXECclm_la_SOURCES = \
+ crc.c d.c exobject.c function.c license.c loader.c macro.c \
+ dpparse.c userinter.c utils.c optarg.c sfile.c ddx.c
+
++libDPEXEC_la_LIBADD = ../dxmods/libuser.la
++
+ EXTRA_DIST = local.mk dxThreadMain.cpp dxThreadMain.h tmainUtil.cpp tmainUtil.h
+
+ $(OBJECTS): yuiif.c yuiif.h
+diff --git a/src/exec/dxexec/Makefile.am b/src/exec/dxexec/Makefile.am
+index 9bc4260..1971965 100644
+--- a/src/exec/dxexec/Makefile.am
++++ b/src/exec/dxexec/Makefile.am
+@@ -12,10 +12,10 @@ libDXEXEC_la_CFLAGS = $(AM_CFLAGS)
+ bindir = $(libdir)/dx/bin_@ARCH@
+ bin_PROGRAMS = dxexec
+
+-dxexec_LDADD = ../dpexec/libDPEXEC.la ../dxmods/libDXMODS.la ../dxmods/user.lo \
+- ../dxmods/libDXMODSN.la ../libdx/libLIBDX.la ../libdx/mem.lo \
+- ../libdx/memory.lo ../hwrender/libHW.la ../hwrender/opengl/libOPENGL.la
+-dxexec_LDFLAGS = @DXEXEC_EXP@
++dxexec_LDADD = ../dpexec/libDPEXEC.la ../dxmods/libDXMODS.la \
++ ../dxmods/libDXMODSN.la ../libdx/libLIBDX.la ../libdx/libmem.la \
++ ../hwrender/libHW.la ../hwrender/opengl/libOPENGL.la
++dxexec_LDFLAGS = @DXEXEC_EXP@ -no-undefined
+ dxexec_SOURCES = main.c
+
+ EXTRA_DIST = tmain.cpp
diff --git a/sci-visualization/opendx/opendx-4.4.4-r7.ebuild b/sci-visualization/opendx/opendx-4.4.4-r7.ebuild
index 024c2706ae3c..f0a448c98e8c 100644
--- a/sci-visualization/opendx/opendx-4.4.4-r7.ebuild
+++ b/sci-visualization/opendx/opendx-4.4.4-r7.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -48,6 +48,7 @@ PATCHES=(
"${FILESDIR}/${P}-szip.patch"
"${FILESDIR}/${P}-null.patch"
"${FILESDIR}/${P}-invalid-conversion.patch"
+ "${FILESDIR}/${P}-slibtool.patch"
"${WORKDIR}/${PN}-4.4.4_p20160917-fix-c++14.patch"
)
@@ -61,6 +62,9 @@ src_configure() {
# with gcc 3.3.2 I had an infinite loop on src/exec/libdx/zclipQ.c
append-flags -fno-strength-reduce
+ # bug #786627
+ append-cppflags -std=c++14
+
# (#82672)
filter-flags -finline-functions
replace-flags -O3 -O2