Summary: | sci-libs/dsdp-5.8-r2: emerge fails in make_shared_library on OS X | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | MATSUI Tetsushi <VED03370> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | ad hoc patch |
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb6d2ed6818bd6fdc06febd825c1daa06c50b616 commit eb6d2ed6818bd6fdc06febd825c1daa06c50b616 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2017-12-03 14:20:30 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2017-12-03 14:20:40 +0000 sci-libs/dsdp: fix shared lib compilation on Darwin, bug #450388 Based on the patch by MATSUI Tetsushi, ensure we don't spit out GNU ld options for Darwin. Closes: https://bugs.gentoo.org/450388 Package-Manager: Portage-2.3.13, Repoman-2.3.3 sci-libs/dsdp/Manifest | 2 +- sci-libs/dsdp/dsdp-5.8-r3.ebuild | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) |
Created attachment 334518 [details] ad hoc patch Emerge of sci-libs/dsdp-5.8-r2 fails at last of compile phase on OS X with the message: ld: unknown option: -soname=libdsdp.5.dylib collect2: ld returned 1 exit status The offending "-soname" is written in make_shared_library function of the ebuild, just before trying to pass -install_name for darwin. If I edit the ebuild to drop -soname part, it still fails with "unknown option: --whole-archive". So, the --whole-archive line should also be excluded. The attached patch does such exclusions for darwin.