Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 499450
Collapse All | Expand All

(-)libsndfile-1.0.25-r1.ebuild (+16 lines)
Lines 38-43 Link Here
38
38
39
S=${WORKDIR}/${MY_P}
39
S=${WORKDIR}/${MY_P}
40
40
41
pkg_pretend() {
42
        if [[ ${MERGE_TYPE} != binary ]]; then
43
                # Bug 499450
44
                if ! test-flags-CC -fuse-ld=bfd &>/dev/null &&
45
                        $(tc-getLD) --version | grep -q "GNU gold"; then
46
                        eerror "${CATEGORY}/${PN} does not link with ld.gold, and toolchain doesn't support -fuse-ld."
47
                        eerror "Please select the bfd linker with binutils-config."
48
                        die "GNU gold detected"
49
                fi
50
        fi
51
}
52
53
41
src_prepare() {
54
src_prepare() {
42
	# fix adding largefile flags on amd64 multilib
55
	# fix adding largefile flags on amd64 multilib
43
	# https://github.com/erikd/libsndfile/commit/d464da7dba4d5
56
	# https://github.com/erikd/libsndfile/commit/d464da7dba4d5
Lines 55-60 Link Here
55
}
68
}
56
69
57
src_configure() {
70
src_configure() {
71
	# Bug 499450
72
	append-ldflags $(test-flags-CC -fuse-ld=bfd)
73
58
	my_configure() {
74
	my_configure() {
59
		local myeconfargs=(
75
		local myeconfargs=(
60
			--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
76
			--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html

Return to bug 499450