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

Collapse All | Expand All

(-)pari-2.5.4.ebuild (-1 / +6 lines)
Lines 74-79 Link Here
74
74
75
src_configure() {
75
src_configure() {
76
	tc-export CC
76
	tc-export CC
77
	export CPLUSPLUS=$(tc-getCXX)
77
78
78
	# need to force optimization here, as it breaks without
79
	# need to force optimization here, as it breaks without
79
	if is-flag -O0; then
80
	if is-flag -O0; then
Lines 102-114 Link Here
102
		mymake=DLLD\="${EPREFIX}"/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm
103
		mymake=DLLD\="${EPREFIX}"/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm
103
	fi
104
	fi
104
105
106
	if use qt4; then
107
		mycxxmake=LD\=$(tc-getCXX)
108
	fi
109
105
	local installdir=$(get_compile_dir)
110
	local installdir=$(get_compile_dir)
106
	cd "${installdir}" || die "failed to change directory"
111
	cd "${installdir}" || die "failed to change directory"
107
	# upstream set -fno-strict-aliasing.
112
	# upstream set -fno-strict-aliasing.
108
	# aliasing is a known issue on amd64, work on x86 by sheer luck
113
	# aliasing is a known issue on amd64, work on x86 by sheer luck
109
	emake ${mymake} \
114
	emake ${mymake} \
110
		CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn
115
		CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn
111
	emake ${mymake} \
116
	emake ${mymake} ${mycxxmake} \
112
		CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp
117
		CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp
113
118
114
	if use doc; then
119
	if use doc; then

Return to bug 472362