From owner-svn-ports-head@FreeBSD.ORG Mon May 25 09:13:54 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 866D0296; Mon, 25 May 2015 09:13:54 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay118.isp.belgacom.be (mailrelay118.isp.belgacom.be [195.238.20.145]) by mx1.freebsd.org (Postfix) with ESMTP id 6DBA28B7; Mon, 25 May 2015 09:13:53 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=yz6z4UlqfYe1Iv9USMliYggvHmbgQ4ACOrhY3D/q6Wc= c=1 sm=2 a=kj9zAlcOel0A:10 a=6I5d2MoRAAAA:8 a=dS96uTg3RSJrSlD1F3sA:9 a=CjuIK1q_8ugA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BgBgAA52JV//KPsFtcgxBUUQ3DRoFRhX8CgS87EgEBAQEBAQGBCoQjAQEEOhwjEAsOCgklDyoeBhOIMAHSZQEBAQEBAQEDAQEBAQEBHIs6hQUHhC0BBJc9hlmXMCOCChyBVDwxgkcBAQE Received: from 242.143-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.143.242]) by relay.skynet.be with ESMTP; 25 May 2015 11:13:52 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id t4P9DoVs009133; Mon, 25 May 2015 11:13:50 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Mon, 25 May 2015 11:13:50 +0200 From: Tijl Coosemans To: Mathieu Arnold Cc: Jan Beich , ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r387283 - head/devel/sdl20 Message-ID: <20150525111350.5df15450@kalimero.tijl.coosemans.org> In-Reply-To: <7442044CBA8EBE7D282ECE9F@atuin.in.mat.cc> References: <201505241648.t4OGmf2K096837@svn.freebsd.org> <7frx-7t2s-wny@vfemail.net> <20150525103725.240723c2@kalimero.tijl.coosemans.org> <7442044CBA8EBE7D282ECE9F@atuin.in.mat.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2015 09:13:54 -0000 On Mon, 25 May 2015 10:51:29 +0200 Mathieu Arnold wrote: > +--On 25 mai 2015 10:37:25 +0200 Tijl Coosemans wrote: > | On Sun, 24 May 2015 20:01:47 +0200 Jan Beich wrote: > |> Tijl Coosemans writes: > |>> +.if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx} > |>> +CONFIGURE_ARGS+= --enable-mmx > |>> +.else > |>> +CONFIGURE_ARGS+= --disable-mmx > |>> +.endif > |> > |> Why not use smth like the following instead ? > |> > |> OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:MMMX} > | > | Because an option doesn't make much sense for CPU features. Either > | the target CPU supports MMX or it doesn't. It's not a user choice. > > Well, yes and no, I'm building packages on a: > > CPU: Intel(R) Xeon(R) CPU E5-2430L 0 @ 2.00GHz (2000.04-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0x206d7 Family = 0x6 Model = 0x2d > Stepping = 7 > > Features=0xbfebfbff > > Features2=0x1fbee3ff > AMD Features=0x2c100800 > AMD Features2=0x1 > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID > TSC: P-state invariant, performance statistics > > but my i386 packages have to work on a > > CPU: Geode(TM) Integrated Processor by AMD PCS (498.05-MHz 586-class CPU) > Origin = "AuthenticAMD" Id = 0x5a2 Stepping = 2 > Features=0x88a93d > AMD Features=0xc0400000 > > > True, they all support MMX instructions, but I'd say it's more by chance > than anything else :-) MACHINE_CPU is defined in /usr/share/mk/bsd.cpu.mk based on CPUTYPE which you can set in make.conf. The host CPU doesn't matter.