Subject: Compilter workarounds in packages
To: None <tech-pkg@netbsd.org>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 12/29/2001 16:52:52
Just adjusting another package for arm32 compiler breakage, and
had some thoughts:
Trying to do things the right way probably includes checking
for the compiler version as well as arch.
My thought was to add the following to the end of the package
Makefile:
.if (${MACHINE_ARCH} == "arm32")
ARM32_COMPILER_WORKAROUND!=gcc -v 2>&1 | awk '/egcs-2.91.66/{print $$3}'
.ifdef ${ARM32_COMPILER_WORKAROUND}
post-configure:
printf '\nfloor1.lo:\n\t$$(LIBTOOL) --mode=compile $$(COMPILE) -O0 -c $$<\n\n' >> ${WRKSRC}/lib/Makefile
.endif
.endif
a) Does this seem a reasonable option?
b) If so, can someoen suggest a cleaner way than the !=gcc... mush
I'd prefer to avoid it being executed on non arm32 platforms...
--
David/absolute -- www.netbsd.org: No hype required --