mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Small Makefile tweaks
Set gcc as default compiler on Linux, also compile with symbols stripped to shrink binary file. Original patch by Heinz van Saanen. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
72ab2cd3e9
commit
341f42be8c
1 changed files with 9 additions and 9 deletions
18
src/Makefile
18
src/Makefile
|
@ -44,9 +44,8 @@ clean:
|
|||
### Compiler:
|
||||
###
|
||||
|
||||
# CXX = g++
|
||||
# CXX = g++-4.2
|
||||
CXX = icpc
|
||||
CXX = g++
|
||||
# CXX = icpc
|
||||
|
||||
|
||||
###
|
||||
|
@ -66,24 +65,25 @@ include .depend
|
|||
### Compiler and linker switches
|
||||
###
|
||||
|
||||
# Enable/disable debugging:
|
||||
# Enable/disable debugging, disabled by default
|
||||
|
||||
CXXFLAGS += -DNDEBUG
|
||||
|
||||
|
||||
# Compile with full warnings, and symbol names
|
||||
# Compile with full warnings, and symbol names stripped, you can use
|
||||
# -g instead of -s to compile symbol's table in, useful for debugging.
|
||||
|
||||
CXXFLAGS += -Wall -g
|
||||
CXXFLAGS += -Wall -s
|
||||
|
||||
|
||||
# General optimization flags. Note that -O2 might be faster than -O3 on some
|
||||
# General optimization flags. Note that -O2 might be faster than -O3 on some
|
||||
# systems; this requires testing.
|
||||
|
||||
CXXFLAGS += -O3 -fno-exceptions -fomit-frame-pointer -fno-rtti -fno-strict-aliasing
|
||||
CXXFLAGS += -O3 -fno-exceptions -fno-rtti -fno-strict-aliasing
|
||||
|
||||
# Disable most annoying warnings for the Intel C++ compiler
|
||||
|
||||
CXXFLAGS += -wd383,869,981
|
||||
# CXXFLAGS += -wd383,869,981
|
||||
|
||||
|
||||
# Compiler optimization flags for the Intel C++ compiler in Mac OS X:
|
||||
|
|
Loading…
Add table
Reference in a new issue