mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
fix(profiles): Move CFLAGS, remove -g, add -mtune=generic
Slowly moving make.conf into profiles, here is another piece. We never actually use the built debug information so remove -g to produce a little less of it. Add -mtune=generic to let GCC optimize for whatever it thinks the most common processors are.
This commit is contained in:
parent
32e1c7f306
commit
8e93e04deb
@ -8,12 +8,5 @@ source make.conf.board_setup
|
||||
# Common settings across all board targets.
|
||||
source make.conf.common
|
||||
|
||||
# Recommended MARCH_TUNE, CFLAGS, etc.
|
||||
MARCH_TUNE=""
|
||||
|
||||
# Allow a board to override or define additional settings.
|
||||
CFLAGS="-O2 -pipe ${MARCH_TUNE} -g"
|
||||
CXXFLAGS="${CFLAGS}"
|
||||
|
||||
# Allow the user to override or define additional settings.
|
||||
source make.conf.user
|
||||
|
3
sdk_container/src/third_party/coreos-overlay/profiles/coreos/amd64/generic/make.defaults
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/profiles/coreos/amd64/generic/make.defaults
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# Enable optimizations for common x86_64 CPUs
|
||||
CFLAGS="-O2 -pipe -mtune=generic"
|
||||
CXXFLAGS="${CFLAGS}"
|
3
sdk_container/src/third_party/coreos-overlay/profiles/coreos/amd64/sdk/make.defaults
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/profiles/coreos/amd64/sdk/make.defaults
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# Enable optimizations for common x86_64 CPUs
|
||||
CFLAGS="-O2 -pipe -mtune=generic"
|
||||
CXXFLAGS="${CFLAGS}"
|
Loading…
x
Reference in New Issue
Block a user