Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 622786 | Differences between
and this patch

Collapse All | Expand All

(-)a/ghc-8.10.3.ebuild~ (-2 / +10 lines)
Lines 3-8 Link Here
3
3
4
EAPI=7
4
EAPI=7
5
5
6
inherit llvm
7
6
# to make make a crosscompiler use crossdev and symlink ghc tree into
8
# to make make a crosscompiler use crossdev and symlink ghc tree into
7
# cross overlay. result would look like 'cross-sparc-unknown-linux-gnu/ghc'
9
# cross overlay. result would look like 'cross-sparc-unknown-linux-gnu/ghc'
8
export CBUILD=${CBUILD:-${CHOST}}
10
export CBUILD=${CBUILD:-${CHOST}}
Lines 87-94 RDEPEND=" Link Here
87
	elfutils? ( dev-libs/elfutils )
89
	elfutils? ( dev-libs/elfutils )
88
	!ghcmakebinary? ( dev-libs/libffi:= )
90
	!ghcmakebinary? ( dev-libs/libffi:= )
89
	numa? ( sys-process/numactl )
91
	numa? ( sys-process/numactl )
92
	arm? ( sys-devel/llvm:9 )
90
"
93
"
91
94
95
LLVM_MAX_SLOT=9
96
92
# This set of dependencies is needed to run
97
# This set of dependencies is needed to run
93
# prebuilt ghc. We specifically avoid ncurses
98
# prebuilt ghc. We specifically avoid ncurses
94
# dependency with:
99
# dependency with:
Lines 361-366 pkg_pretend() { Link Here
361
pkg_setup() {
366
pkg_setup() {
362
	ghc-check-reqs check-reqs_pkg_setup
367
	ghc-check-reqs check-reqs_pkg_setup
363
368
369
	llvm_pkg_setup
370
364
	# quiet portage about prebuilt binaries
371
	# quiet portage about prebuilt binaries
365
	use binary && QA_PREBUILT="*"
372
	use binary && QA_PREBUILT="*"
366
373
Lines 585-598 src_configure() { Link Here
585
			Windres=${CTARGET}-windres
592
			Windres=${CTARGET}-windres
586
			DllWrap=${CTARGET}-dllwrap
593
			DllWrap=${CTARGET}-dllwrap
587
			# we set the linker explicitly below
594
			# we set the linker explicitly below
588
			--disable-ld-override
595
#			--disable-ld-override
589
		)
596
		)
590
		case ${CTARGET} in
597
		case ${CTARGET} in
591
			arm*)
598
			arm*)
592
				# ld.bfd-2.28 does not work for ghc. Force ld.gold
599
				# ld.bfd-2.28 does not work for ghc. Force ld.gold
593
				# instead. This should be removed once gentoo gets
600
				# instead. This should be removed once gentoo gets
594
				# a fix for R_ARM_COPY bug: https://sourceware.org/PR16177
601
				# a fix for R_ARM_COPY bug: https://sourceware.org/PR16177
595
				econf_args+=(LD=${CTARGET}-ld.gold)
602
#				econf_args+=(LD=${CTARGET}-ld.gold)
603
				econf_args+=("LLC=$(command -v llc)" OPT="$(command -v opt)")
596
			;;
604
			;;
597
			sparc*)
605
			sparc*)
598
				# ld.gold-2.28 does not work for ghc. Force ld.bfd
606
				# ld.gold-2.28 does not work for ghc. Force ld.bfd

Return to bug 622786