Skip to content

Commit

Permalink
INSTALL.md: Document how to add custom compiler flags.
Browse files Browse the repository at this point in the history
CC: Mark B Kavanagh <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Russell Bryant <[email protected]>
  • Loading branch information
blp committed Apr 2, 2015
1 parent 190cf53 commit 73c3389
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ To use 'clang' compiler:

`% ./configure CC=clang`

To supply special flags to the C compiler, specify them as CFLAGS on
the configure command line. If you want the default CFLAGS, which
include "-g" to build debug symbols and "-O2" to enable optimizations,
you must include them yourself. For example, to build with the
default CFLAGS plus "-mssse3", you might run configure as follows:

`% ./configure CFLAGS="-g -O2 -mssse3"`

To build the Linux kernel module, so that you can run the
kernel-based switch, pass the location of the kernel build
directory on --with-linux. For example, to build for a running
Expand Down

0 comments on commit 73c3389

Please sign in to comment.