From owner-freebsd-arch@FreeBSD.ORG Thu Apr 10 16:43:22 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 90C31916 for ; Thu, 10 Apr 2014 16:43:22 +0000 (UTC) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 63CD61870 for ; Thu, 10 Apr 2014 16:43:22 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id fp1so4116671pdb.28 for ; Thu, 10 Apr 2014 09:43:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=W6MVnWkC+vfRwwZwHKbTqufLRTMidcG8Vwl7s17fnrQ=; b=k2bevPjktNVd+2tw/67KjBMia6C7z0Kv+6/y77D89scRn1apiRITzt9J1CbQkKrng+ lCaSzUgX71Yw9+bIZEQL8+TbXIaUvCIFmJ5JQsJ9SPvXlWrCCXdkVVxaoiXxlWtMabOw xJqCghyHpd/Z67zdCbifV+7K9quCCkvLZVg2fXCqoWQaH7ie63fNWbXxDrM1IkAKbqsi n8yixGDm5cT1I+1Ba/cwhvy/I2OZ2E3JOOadrK56nRh83B7+/YpJWFh4tdiwOBgHF4FT KCWxu80dnFaR29z/J/rsmeqxS3LBGSTos/mrJltr0vfpHLaaxtu8tqUXlfkyh1sonuT1 rckg== X-Gm-Message-State: ALoCoQn0EqUmXo1C6ufLknWoXmiYXd6Rb7Y8dGUUyq9VpeKgB/ojvuru4x2UBzwvzursIbQiKp8H X-Received: by 10.66.136.71 with SMTP id py7mr21283460pab.2.1397148196537; Thu, 10 Apr 2014 09:43:16 -0700 (PDT) Received: from [10.64.24.116] (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id wp3sm10109001pbc.67.2014.04.10.09.43.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 09:43:16 -0700 (PDT) Sender: Warner Losh Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: ar and ranlib -D From: Warner Losh In-Reply-To: <86a9btuqh1.fsf@nine.des.no> Date: Thu, 10 Apr 2014 10:43:13 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <257F4CC6-78AC-4729-B0F7-50FDA296D46D@bsdimp.com> References: <86eh15usv2.fsf@nine.des.no> <79CBA7AC-998E-46EE-8F94-F92C7C00FF75@bsdimp.com> <86a9btuqh1.fsf@nine.des.no> To: =?windows-1252?Q?Dag-Erling_Sm=F8rgrav?= X-Mailer: Apple Mail (2.1874) Cc: arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2014 16:43:22 -0000 On Apr 10, 2014, at 9:57 AM, Dag-Erling Sm=F8rgrav wrote: > Warner Losh writes: >> My only concern is with the %POSIX section. That change isn=92t = needed >> for reproducible builds. >=20 > Is it harmful? >=20 > (what is that, anyway? It's not documented in make(1)) Short answer: It isn=92t defined by POSIX 1003.2, so yes. POSIX mode, which is barely documented in the .POSIX target, causes make(1) to try hard to comply with POSIX requirements. Make, itself, = winds up setting %POSIX to =931003.2=94 and not remaking the Makefiles. The = global sys.mk system responds to this variable by only using commands defined by POSIX 1003.2, so it uses c89, instead of cc. It adds the dash to the = ar command, and a bunch of other silly differences that are none-the-less mandated by POSIX. Since -D isn=92t defined by POSIX ar, your change breaks that and so is harmful... Warner