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

(-)/usr/portage/sys-libs/musl/musl-1.1.15.ebuild (-1 / +15 lines)
Lines 57-62 Link Here
57
	esac
57
	esac
58
}
58
}
59
59
60
arm_is_hardfloat() {
61
	cat >"${T}"/arm-ext.c <<EOF
62
	#ifdef __ARM_PCS_VFP
63
	#error "VFP"
64
	#endif
65
	typedef int x;
66
EOF
67
	if ! $(tc-getCPP) "${T}"/arm-ext.c -o "${T}"/arm-ext.i >/dev/null 2>&1; then
68
		return 0;
69
	else
70
		return 1;
71
	fi
72
}
73
60
pkg_setup() {
74
pkg_setup() {
61
	if [ ${CTARGET} == ${CHOST} ] ; then
75
	if [ ${CTARGET} == ${CHOST} ] ; then
62
		case ${CHOST} in
76
		case ${CHOST} in
Lines 108-114 Link Here
108
		local endian=$(musl_endian)
122
		local endian=$(musl_endian)
109
		case ${target} in
123
		case ${target} in
110
			amd64) arch="x86_64";;
124
			amd64) arch="x86_64";;
111
			arm)   arch="armhf";; # We only have hardfloat right now
125
			arm)   arm_is_hardfloat && arch="armhf" || arch="arm";;
112
			mips)  arch="mips${endian}";;
126
			mips)  arch="mips${endian}";;
113
			ppc)   arch="powerpc";;
127
			ppc)   arch="powerpc";;
114
			x86)   arch="i386";;
128
			x86)   arch="i386";;

Return to bug 592268