Skip to content

Commit

Permalink
media-libs/jasper: Fix underlinking detected using ld.gold
Browse files Browse the repository at this point in the history
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=601070

Package-Manager: portage-2.3.2
Signed-off-by: Justin Lecher <[email protected]>
  • Loading branch information
jlec committed Dec 3, 2016
1 parent 41d064a commit 1b1bbaa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions media-libs/jasper/files/jasper-2.0.0-add_libm.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- jasper-2.0.0/src/libjasper/CMakeLists.txt.ori 2016-11-28 13:32:57.245053411 +0100
+++ jasper-2.0.0/src/libjasper/CMakeLists.txt 2016-11-28 13:33:24.707547620 +0100
@@ -135,6 +135,8 @@
"${CMAKE_CURRENT_SOURCE_DIR}/include"
)

+target_link_libraries(libjasper m)
+
if (UNIX)
set_target_properties(libjasper PROPERTIES OUTPUT_NAME jasper)
endif()
5 changes: 4 additions & 1 deletion media-libs/jasper/jasper-2.0.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ RDEPEND="
>=virtual/opengl-7.0-r1:0[${MULTILIB_USEDEP}]
>=media-libs/freeglut-2.8.1:0[${MULTILIB_USEDEP}]
virtual/glu
x11-libs/libXi[${MULTILIB_USEDEP}]
x11-libs/libXmu[${MULTILIB_USEDEP}]
)"
DEPEND="${RDEPEND}
app-arch/unzip"

PATCHES=(
"${FILESDIR}"/${PN}-2.0.0-fix-build-system.patch
"${FILESDIR}"/${P}-fix-build-system.patch
"${FILESDIR}"/${P}-add_libm.patch
)

multilib_src_configure() {
Expand Down

0 comments on commit 1b1bbaa

Please sign in to comment.