Subject: Re: pkg_install update
To: Riccardo Mottola <zuse@libero.it>
From: Frederick Bruckman <fredb@immanent.net>
List: port-mac68k
Date: 01/21/2003 21:23:56
On Tue, 21 Jan 2003, Riccardo Mottola wrote:

> on 1/21/03 4:00 PM, Frederick Bruckman at fredb@immanent.net wrote:
>
> PPS: is there a way to tell the make when it compiles to optimize for my
> CPU? like 040? or is it automatic?

No, by default, X builds the same on any host, but here's an
unsupported patch which accomplishes it. With this, you can set
${COPTS} in your environment and export it, to say "-m68040" or
"-m68020-40", and it'll be added to the "cc" command line.


Index: NetBSD.cf
===================================================================
RCS file: /cvsroot/xsrc/xc/config/cf/NetBSD.cf,v
retrieving revision 1.101
diff -u -r1.101 NetBSD.cf
--- NetBSD.cf	2002/09/20 21:45:30	1.101
+++ NetBSD.cf	2003/01/22 03:15:21
@@ -159,12 +159,12 @@
 #if defined(UseInstalled) && (!defined(XF86LinkKit) || !XF86LinkKit)
 #define DefaultCCOptions 	/**/
 #elif defined(armArchitecture)
-#define DefaultCCOptions 	-ansi -Dasm=__asm -fsigned-char -fomit-frame-pointer
+#define DefaultCCOptions 	$(COPTS) -ansi -Dasm=__asm -fsigned-char -fomit-frame-pointer
 #elif defined(Sparc64Architecture)
-#define DefaultCCOptions 	-ansi -Dasm=__asm -ffixed-g4 -mcmodel=medlow
-#define LibraryCCOptions 	-ansi -Dasm=__asm -ffixed-g4 -mcmodel=medany
+#define DefaultCCOptions 	$(COPTS) -ansi -Dasm=__asm -ffixed-g4 -mcmodel=medlow
+#define LibraryCCOptions 	$(COPTS) -ansi -Dasm=__asm -ffixed-g4 -mcmodel=medany
 #else
-#define DefaultCCOptions 	-ansi -Dasm=__asm
+#define DefaultCCOptions 	$(COPTS) -ansi -Dasm=__asm
 #endif

 #ifndef UseGccMakeDepend


Frederick