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

Collapse All | Expand All

(-)cdrtools-2.01.01_alpha65.ebuild (+12 lines)
Lines 61-66 Link Here
61
61
62
	# Create additional symlinks needed for some archs.
62
	# Create additional symlinks needed for some archs.
63
	cd "${S}"/RULES
63
	cd "${S}"/RULES
64
65
	# Respect CC/CXX variables
66
	local tcCC=$(tc-getCC)
67
	local tcCXX=$(tc-getCXX)
68
	sed -i -e "/cc-config.sh/s/\$(C_ARCH:%64=%) \$(CCOM_DEF)/${tcCC} ${tcCC}/" \
69
		rules1.top || die "sed rules1.top failed"
70
	sed -i -e "/^\(CC\|DYNLD\|LDCC\|MKDEP\)/s/gcc/${tcCC}/" \
71
		-e "/^\(CC++\|DYNLDC++\|LDCC++\|MKC++DEP\)/s/g++/${tcCXX}/" \
72
		cc-gcc.rul || die "sed cc-gcc.rul failed"
73
	sed -i -e "s/^#CONFFLAGS +=\t-cc=\$(XCC_COM)$/CONFFLAGS +=\t-cc=${tcCC}/g" \
74
		rules.cnf || die "sed rules.cnf failed"
75
64
	local t
76
	local t
65
	for t in ppc64 sh4 s390x ; do
77
	for t in ppc64 sh4 s390x ; do
66
		ln -s i586-linux-cc.rul ${t}-linux-cc.rul || die
78
		ln -s i586-linux-cc.rul ${t}-linux-cc.rul || die

Return to bug 243528