Port-powerpc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: missing math functions on powerpc (macppc)?
John D. Baker wrote:
>> Although... I'm running into a compiler bug when trying to build
>> libvpx:
> [...]
>
> See pkg/49600 and the hack I posted therein. I've since derived a
> better one:
>
> +--- multimedia/libvpx/hacks.mk.tmp 2015-12-14 16:21:17.000000000 -0600
> ++++ multimedia/libvpx/hacks.mk 2015-12-17 09:40:36.000000000 -0600
> +@@ -10,3 +10,17 @@ PKG_HACKS+= sparc-gcc-lock-up
> + BUILDLINK_TRANSFORM+= rm:-O[0-9]*
> + . endif
> + .endif
> ++
> ++### GCC 4.8.5 w/"-O3" produces broken library with undefined
> references. ++### See PR pkg/5xxxx for more details.
> ++.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "powerpc"
> ++. include "../../mk/compiler.mk"
> ++. if !empty(CC_VERSION:Mgcc-4.[89].*)
> ++PKG_HACKS+= powerpc-undefined-refs-with-level-3-optimization
> ++SUBST_CLASSES+= libs
> ++SUBST_STAGE.libs= post-patch
> ++SUBST_MESSAGE.libs= Eliminate "-O3" from C{,XX}FLAGS
> ++SUBST_FILES.libs= build/make/configure.sh
> ++SUBST_SED.libs= -e '/enabled small/s, || *check_add_cflags -O3$$,,'
> ++. endif
> ++.endif
That works. Thanks!
But this is only a workaround. Shouldn't a compiler bug be fixed in the
compiler? Otherwise the number of patches will increase in the future. I
mean, was it even reported to the gcc-people?
--
Frank Wille
Home |
Main Index |
Thread Index |
Old Index