From owner-freebsd-doc Wed Jul 31 11:29: 8 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A308837B406 for ; Wed, 31 Jul 2002 11:28:46 -0700 (PDT) Received: from heaven.gigo.com (heaven.gigo.com [64.57.102.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 003BF4451F for ; Wed, 31 Jul 2002 11:20:50 -0700 (PDT) (envelope-from lioux@brturbo.com) Received: from 200-193-225-174-bsace7003.dsl.telebrasilia.net.br (200-193-225-174-bsace7003.dsl.telebrasilia.net.br [200.193.225.174]) by heaven.gigo.com (Postfix) with ESMTP id DE1A7B70E for ; Wed, 31 Jul 2002 11:19:33 -0700 (PDT) Received: (qmail 94568 invoked by uid 1001); 31 Jul 2002 18:19:07 -0000 Message-ID: <20020731181907.94567.qmail@exxodus.fedaykin.here> Date: Wed, 31 Jul 2002 15:18:45 -0300 From: Mario Sergio Fujikawa Ferreira To: Alexey Zelkin Cc: freebsd-doc@FreeBSD.org Subject: Addition to porters-handbook (CC/CXX rule) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.6-STABLE X-Disclaimer: I hope you find what you are looking for... in life :) Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, This is a patch against porters-handbook doc/en_US.ISO8859-1/books/porters-handbook/book.sgml I think we should add a section for both CC and CXX variables just like the one we have for the CFLAGS one. After all, this is de facto practice. It just was not documented yet. It will be good so that we can point ppl at documentation. As always, please check tagging, text and grammar. I tested it but who ever knows. Regards, -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." Computer Science Undergraduate | FreeBSD Committer | CS Developer flames to beloved devnull@someotherworldbeloworabove.org feature, n: a documented bug | bug, n: an undocumented feature --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-book.sgml" --- book.sgml.orig Wed Jul 31 14:13:34 2002 +++ book.sgml Wed Jul 31 14:53:50 2002 @@ -5073,6 +5073,38 @@ + Respect both <makevar>CC</makevar> and + <makevar>CXX</makevar> + + The port should respect both CC + and CXX variables. If it does not, + please add NO_PACKAGE=ignores either cc or + cxx to the Makefile. + + An example of a Makefile respecting + both CC and CXX + variables follows. Note the ?=: + + CC ?= gcc + CXX ?= g++ + + Here is an example which respects neither + CC nor CXX + variables: + + CC = gcc + CXX = g++ + + Both CC and CFLAGS + variables can be defined on FreeBSD systems in + /etc/make.conf. The first example + defines a value if it was not previously set in + /etc/make.conf, preserving any + system-wide definitions. The second example clobbers + anything previously defined. + + + Respect <makevar>CFLAGS</makevar> The port should respect the CFLAGS variable. --T4sUOijqQbZv57TR-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message