Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450388 - sci-libs/dsdp-5.8-r2: emerge fails in make_shared_library on OS X
Summary: sci-libs/dsdp-5.8-r2: emerge fails in make_shared_library on OS X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 14:03 UTC by MATSUI Tetsushi
Modified: 2017-12-03 14:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ad hoc patch (dsdp-5.8-r2.ebuild.diff,742 bytes, text/plain)
2013-01-05 14:03 UTC, MATSUI Tetsushi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2013-01-05 14:03:11 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2017-12-03 14:20:50 UTC
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(-)