From 7c2ec44f81e001e67d82fa1fc5f21206fa9fc8f0 Mon Sep 17 00:00:00 2001 From: Jim Mock Date: Fri, 16 Jun 2000 00:04:01 +0000 Subject: [PATCH] Explain CFLAGS in a bit more detail. The previous mention was too brief and could cause new users to not understand what is meant by respecting CFLAGS. PR: 19278 Submitted by: Zach Zurflu --- .../books/porters-handbook/book.sgml | 20 ++++++++++++++++++- .../books/porters-handbook/book.sgml | 20 ++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml index 7442a95d3f..9ee4cefd18 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml @@ -1,7 +1,7 @@ The port should respect the CFLAGS variable. If it does not, please add NO_PACKAGE=ignores cflags to the Makefile. + + An example of a Makefile respecting + the CFLAGS variable follows. Note the + +=: + + CFLAGS += -Wall -Werror + + Here is an example which does not respect the + CFLAGS variable: + + CFLAGS = -Wall -Werror + + The CFLAGS variable is defined on + FreeBSD systems in /etc/make.conf. The + first example appends additional flags to the + CFLAGS variable, preserving any system-wide + definitions. The second example clobbers anything previously + defined. diff --git a/en_US.ISO_8859-1/books/porters-handbook/book.sgml b/en_US.ISO_8859-1/books/porters-handbook/book.sgml index 7442a95d3f..9ee4cefd18 100644 --- a/en_US.ISO_8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO_8859-1/books/porters-handbook/book.sgml @@ -1,7 +1,7 @@ The port should respect the CFLAGS variable. If it does not, please add NO_PACKAGE=ignores cflags to the Makefile. + + An example of a Makefile respecting + the CFLAGS variable follows. Note the + +=: + + CFLAGS += -Wall -Werror + + Here is an example which does not respect the + CFLAGS variable: + + CFLAGS = -Wall -Werror + + The CFLAGS variable is defined on + FreeBSD systems in /etc/make.conf. The + first example appends additional flags to the + CFLAGS variable, preserving any system-wide + definitions. The second example clobbers anything previously + defined.