From 99c23d57ed6e6e12f19a7c04746c5b7055fbc8d2 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 20 May 2003 06:02:40 +0000 Subject: Work around FreeBSD 5.x's bug by design that indoctrinates -mcpu=mycpuserialno in the default installation to everybody, and override the user's CFLAGS and CXXFLAGS with sane defaults, so this cross-compilation works again. Long live creaping featurism! Submitted by: ru --- devel/avr-libc/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'devel') diff --git a/devel/avr-libc/Makefile b/devel/avr-libc/Makefile index 61948e776db4..3bc04bdd9a67 100644 --- a/devel/avr-libc/Makefile +++ b/devel/avr-libc/Makefile @@ -31,8 +31,12 @@ HAS_CONFIGURE= yes CONFIGURE_ENV= CC=avr-gcc PREFIX=${PREFIX} CONFIGURE_SCRIPT= doconf CONFIGURE_ARGS= --enable-doc --disable-versioned-doc -# Work around the braind*** introduced by in freebsd-current. +# Work around the braind***ness introduced by in freebsd-5. +# Sorry, the user is no longer be able to override the optimization and +# debugging settings now. MAKE_ENV= NO_CPU_CFLAGS=true +CFLAGS= -O +CXXFLAGS= -O do-build: (cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ./domake MAKE=${GMAKE}) -- cgit