mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
Makefile: Do not force optimizations by default
Make life easier for package maintainers by not forcing architecture or compiler optimizations by default. E.g., Gentoo QA refuses to accept both "-march=native" and "-O3". These are usually provided by the package tooling. Instead, we provide easily accessible templates in "makeflags". Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
parent
31b41bb3c2
commit
679a327ac5
13
makeflags
13
makeflags
@ -1,4 +1,11 @@
|
|||||||
CCFLAGS = -Wall -Wextra -Werror -O3 -march=native -I../include -ggdb -D_FILE_OFFSET_BITS=64
|
# Default:
|
||||||
|
CCFLAGS = -Wall -Wextra -Werror -I../include -fpic -D_FILE_OFFSET_BITS=64
|
||||||
|
|
||||||
|
# Optimized:
|
||||||
|
# CCFLAGS = -Wall -Wextra -Werror -O3 -march=native -I../include -fpic -D_FILE_OFFSET_BITS=64
|
||||||
|
|
||||||
|
# Debug:
|
||||||
# CCFLAGS = -Wall -Wextra -Werror -O0 -I../include -ggdb -fpic -D_FILE_OFFSET_BITS=64
|
# CCFLAGS = -Wall -Wextra -Werror -O0 -I../include -ggdb -fpic -D_FILE_OFFSET_BITS=64
|
||||||
CFLAGS = $(CCFLAGS) -std=c99
|
|
||||||
CXXFLAGS = $(CCFLAGS) -std=c++11 -Wold-style-cast
|
CFLAGS += $(CCFLAGS) -std=c99
|
||||||
|
CXXFLAGS += $(CCFLAGS) -std=c++11 -Wold-style-cast
|
||||||
|
Loading…
x
Reference in New Issue
Block a user