summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2024-12-21 12:36:29 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2024-12-21 12:38:07 +0100
commit20a41a5254279019654bd2fddb2f77d04ac4441f (patch)
tree8358cb53bf86eaff50d8c9793ccd97f0cee3002f /media-gfx
parentdev-python/pylint: Remove old (diff)
downloadgentoo-20a41a5254279019654bd2fddb2f77d04ac4441f.tar.gz
gentoo-20a41a5254279019654bd2fddb2f77d04ac4441f.tar.bz2
gentoo-20a41a5254279019654bd2fddb2f77d04ac4441f.zip
media-gfx/prusaslicer: updated fpic patches in live
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/prusaslicer/files/prusaslicer-2.9.0-fpic-all.patch18
-rw-r--r--media-gfx/prusaslicer/prusaslicer-9999.ebuild1
2 files changed, 19 insertions, 0 deletions
diff --git a/media-gfx/prusaslicer/files/prusaslicer-2.9.0-fpic-all.patch b/media-gfx/prusaslicer/files/prusaslicer-2.9.0-fpic-all.patch
new file mode 100644
index 000000000000..f71a5b988424
--- /dev/null
+++ b/media-gfx/prusaslicer/files/prusaslicer-2.9.0-fpic-all.patch
@@ -0,0 +1,18 @@
+From a48acef85b34b52085378b8ee39a79f7eaeac0fa Mon Sep 17 00:00:00 2001
+From: Andreas Schneider <asn@cryptomilk.org>
+Date: Fri, 20 Dec 2024 20:49:23 +0100
+Subject: [PATCH] cmake: Turn on position independent code for all targets
+
+Fixes: #13694
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -1,6 +1,9 @@
+ cmake_minimum_required(VERSION 3.13)
+ project(PrusaSlicer-native)
+
++# This enables -fPIC for shared libaries and -fpie for binaries
++set(CMAKE_POSITION_INDEPENDENT_CODE ON)
++
+ add_subdirectory(clipper)
+ find_package(Qhull 7.2 REQUIRED)
+ add_library(qhull INTERFACE)
diff --git a/media-gfx/prusaslicer/prusaslicer-9999.ebuild b/media-gfx/prusaslicer/prusaslicer-9999.ebuild
index 8e52edaf8502..2fcf6ded9e4e 100644
--- a/media-gfx/prusaslicer/prusaslicer-9999.ebuild
+++ b/media-gfx/prusaslicer/prusaslicer-9999.ebuild
@@ -68,6 +68,7 @@ PATCHES=(
"${FILESDIR}/${PN}-2.8.1-fix-libsoup-double-linking.patch"
"${FILESDIR}/${PN}-2.9.0-missing-includes.patch"
"${FILESDIR}/${PN}-2.9.0-fpic.patch"
+ "${FILESDIR}/${PN}-2.9.0-fpic-all.patch"
"${FILESDIR}/${PN}-2.9.0-slic3r-arrange.patch"
"${FILESDIR}/${PN}-2.9.0-slic3r-arrange-wrapper.patch"
)