about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-06-29 01:22:07 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-06-29 01:22:07 +0000
commita1a47a19a2cf9dc51babca9eecc352e6e3b9eaaf (patch)
treea2868149098357ed4fc86a02b42867a69d7af231 /doc
parentd8c975346820b567a383e71c20d61c37be5887c7 (diff)
downloadnetpbm-mirror-a1a47a19a2cf9dc51babca9eecc352e6e3b9eaaf.tar.gz
netpbm-mirror-a1a47a19a2cf9dc51babca9eecc352e6e3b9eaaf.tar.xz
netpbm-mirror-a1a47a19a2cf9dc51babca9eecc352e6e3b9eaaf.zip
Add information of selecting compiler
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2216 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'doc')
-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
 -------------------