Subject: Compilter workarounds in packages
To: None <>
From: David Brownlee <>
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

.if (${MACHINE_ARCH} == "arm32")
ARM32_COMPILER_WORKAROUND!=gcc -v 2>&1 | awk '/egcs-2.91.66/{print $$3}'
       printf '\nfloor1.lo:\n\t$$(LIBTOOL) --mode=compile $$(COMPILE) -O0 -c $$<\n\n' >> ${WRKSRC}/lib/Makefile

	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		-- No hype required --