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.
The bug has been closed via the following commit(s):
Author: Fabian Groffen <firstname.lastname@example.org>
AuthorDate: 2017-12-03 14:20:30 +0000
Commit: Fabian Groffen <email@example.com>
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.
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(-)