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

(-)/usr/portage/dev-lang/ocaml/ocaml-3.12.1.ebuild (-4 / +8 lines)
Lines 65-79 Link Here
65
	use X || myconf="${myconf} -no-graph"
65
	use X || myconf="${myconf} -no-graph"
66
	use gdbm || myconf="${myconf} -no-dbm"
66
	use gdbm || myconf="${myconf} -no-dbm"
67
67
68
	# multilib portage fix
69
	STD_LDFLAGS="$(raw-ldflags)"
70
	MUL_LDFLAGS="LDFLAGS_${ABI}"
71
	EMUL_LDFLAGS="${!MUL_LDFLAGS}"
68
	# ocaml uses a home-brewn configure script, preventing it to use econf.
72
	# ocaml uses a home-brewn configure script, preventing it to use econf.
69
	RAW_LDFLAGS="$(raw-ldflags)" ./configure -prefix /usr \
73
	RAW_LDFLAGS="${STD_LDFLAGS/-m32/${EMUL_LDFLAGS}}" ./configure -prefix /usr \
70
		--bindir /usr/bin \
74
		--bindir /usr/bin \
71
		--libdir /usr/$(get_libdir)/ocaml \
75
		--libdir /usr/$(get_libdir)/ocaml \
72
		--mandir /usr/share/man \
76
		--mandir /usr/share/man \
73
		-host "${CHOST}" \
77
		-host "${CHOST}" \
74
		-cc "$(tc-getCC)" \
78
		-cc "$(tc-getCC) ${CFLAGS}" \
75
		-as "$(tc-getAS)" \
79
		-as "$(tc-getAS) ${ASFLAGS}" \
76
		-aspp "$(tc-getCC) -c" \
80
		-aspp "$(tc-getCC) ${CFLAGS} -c" \
77
		-partialld "$(tc-getLD) -r" \
81
		-partialld "$(tc-getLD) -r" \
78
		--with-pthread ${myconf} || die "configure failed!"
82
		--with-pthread ${myconf} || die "configure failed!"
79
83

Return to bug 237629