From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 28 06:10:12 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FD6C16A417 for ; Tue, 28 Aug 2007 06:10:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 551AB13C45D for ; Tue, 28 Aug 2007 06:10:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7S6AAGc020226 for ; Tue, 28 Aug 2007 06:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7S6A92E020219; Tue, 28 Aug 2007 06:10:10 GMT (envelope-from gnats) Date: Tue, 28 Aug 2007 06:10:10 GMT Message-Id: <200708280610.l7S6A92E020219@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Scot Hetzel" Cc: Subject: Re: conf/112997: Add note about the 'native' mtune option to share/examples/etc/make.conf X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Scot Hetzel List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2007 06:10:12 -0000 The following reply was made to PR conf/112997; it has been noted by GNATS. From: "Scot Hetzel" To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: Re: conf/112997: Add note about the 'native' mtune option to share/examples/etc/make.conf Date: Tue, 28 Aug 2007 01:04:24 -0500 ------=_Part_6081_32633261.1188281064325 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I found another solution to this problem by patching share/mk/bsd.cpu.mk. This patch adds code to share/mk/bsd.cpu.mk which uses gcc to change the 'native' cpu_type to the a CPUTYPE that can be used to set the correct MACHINE_CPU. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. ------=_Part_6081_32633261.1188281064325 Content-Type: text/x-diff; name=gcc_native.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: file0 Content-Disposition: attachment; filename="gcc_native.patch" SW5kZXg6IHNoYXJlL21rL2JzZC5jcHUubWsKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2hvbWUvbmN2 cy9zcmMvc2hhcmUvbWsvYnNkLmNwdS5tayx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS42MgpkaWZm IC11IC1yMS42MiBic2QuY3B1Lm1rCi0tLSBzaGFyZS9tay9ic2QuY3B1Lm1rCTIxIE1heSAyMDA3 IDA4OjM5OjQ0IC0wMDAwCTEuNjIKKysrIHNoYXJlL21rL2JzZC5jcHUubWsJMjggQXVnIDIwMDcg MDU6NTA6MDkgLTAwMDAKQEAgLTE4LDYgKzE4LDE0IEBACiAuIGVuZGlmCiAuZWxzZQogCisjIEhh bmRsZSAnbmF0aXZlJyBieSBjb252ZXJ0aW5nIGl0IHRvIHRoZSBhcHByb3ByaWF0ZSBDUFVUWVBF CisKKy5pZiAke01BQ0hJTkVfQVJDSH0gPT0gImkzODYiIHx8ICR7TUFDSElORV9BUkNIfSA9PSAi YW1kNjQiCisuIGlmICR7Q1BVVFlQRX0gPT0gIm5hdGl2ZSIKK0NQVVRZUEUgIT0gZ2NjIC12IC14 IGMgLUUgLW10dW5lPW5hdGl2ZSAvZGV2L251bGwgLW8gL2Rldi9udWxsIDI+JjEgfCBncmVwIG10 dW5lIHwgc2VkIC1lICdzLy4qbXR1bmU9Ly8nCisuIGVuZGlmCisuZW5kaWYKKwogIyBIYW5kbGUg YWxpYXNlcyAobm90IGRvY3VtZW50ZWQgaW4gbWFrZS5jb25mIHRvIGF2b2lkIHVzZXIgY29uZnVz aW9uCiAjIGJldHdlZW4gZS5nLiBpNTg2IGFuZCBwZW50aXVtKQogCg== ------=_Part_6081_32633261.1188281064325--