about summary refs log tree commit diff
path: root/doc/INSTALL
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-06-29 19:43:45 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-06-29 19:43:45 +0000
commitfcd1b680c260b931cb5b8cd900c88d9e8dd5f1ad (patch)
tree798e7e0a8fc53429b26d536ecb6ec1a176923ded /doc/INSTALL
parent51eb5e0d2722f0cf1033ac158d2fdbcd82b6e800 (diff)
downloadnetpbm-mirror-fcd1b680c260b931cb5b8cd900c88d9e8dd5f1ad.tar.gz
netpbm-mirror-fcd1b680c260b931cb5b8cd900c88d9e8dd5f1ad.tar.xz
netpbm-mirror-fcd1b680c260b931cb5b8cd900c88d9e8dd5f1ad.zip
Fix up commit mess
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2223 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'doc/INSTALL')
-rw-r--r--doc/INSTALL26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/INSTALL b/doc/INSTALL
index 33bb4bc7..9ed6e131 100644
--- a/doc/INSTALL
+++ b/doc/INSTALL
@@ -170,6 +170,32 @@ If you figure out how to install on other platforms, contact the
 Netpbm maintainer to have the 'configure' program or these
 instructions improved for the next person.
 
+If you want to use a compiler other than your system default, set
+the CC value in config.mk to the shell command name for your compiler,
+e.g.
+
+  CC=clang-3
+
+You can also override it on the Make command line, which is especially
+useful if you want to build some parts with one compiler and other parts
+with another compiler:
+
+  $ make pamflip CC=clang-3
+
+To get appropriate defaults when you run 'configure', you can also set what
+compiler Configure assumes you will be using to build, with an environment
+variable:
+
+  $ CC=clang-3 ./configure
+
+Likewise, you can add compiler flags with a CFLAGS make variable, either set
+in config.mk or on the make command line and you can get better get more
+appropriate defaults from Configure if you pass the same CFLAGS to Configure
+via environment variable.  LDFLAGS (linker options) and CPPFLAGS (C
+preprocessor options) are similar.
+
+  $ make CFLAGS=-O0
+
 
 CUSTOM INSTALLATION
 -------------------