aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--baseconfig15
-rw-r--r--linux/.config4
2 files changed, 10 insertions, 9 deletions
diff --git a/baseconfig b/baseconfig
index 5827dbc..7ca05c9 100644
--- a/baseconfig
+++ b/baseconfig
@@ -3,22 +3,23 @@ mainmenu "smolbote configuration"
comment "Build"
menu "Compiler settings"
config CXX_FLAGS
- string "Compiler flags"
+ string "Compiler Flags"
help
Compiler flags that should be applied to both Debug and Release builds.
- default "-fPIE -pipe -fstack-protector-strong -fno-plt"
+ default "-pipe -fstack-protector-strong -fno-plt -fPIE"
config CXX_FLAGS_DEBUG
- string "Debug flags"
+ string "Debug Flags"
help
- Compiler flags that should be applied to Debug builds.
+ Compiler flags that should be applied to Debug builds. These flags, together with the Compiler Flags, are appended to CMAKE_CXX_FLAGS_DEBUG.
default ""
config CXX_FLAGS_RELEASE
- string "Release flags"
+ string "Release Flags"
help
- Compiler flags that should be applied to Release builds.
- default "-march=native -mtune=native -O3"
+ Compiler flags that should be applied to Release builds. These flags, together with the Compiler Flags, are appended to CMAKE_CXX_FLAGS_RELEASE.
+ - -march=native -mtune=native will build executables that are optimized for the build environment's native arch.
+ default ""
endmenu
menu "Install paths"
diff --git a/linux/.config b/linux/.config
index 37c41dc..a70ecff 100644
--- a/linux/.config
+++ b/linux/.config
@@ -10,9 +10,9 @@
#
# Compiler settings
#
-CONFIG_CXX_FLAGS="-fPIE -pipe -fstack-protector-strong -fno-plt"
+CONFIG_CXX_FLAGS="-pipe -fstack-protector-strong -fno-plt -fPIE"
CONFIG_CXX_FLAGS_DEBUG=""
-CONFIG_CXX_FLAGS_RELEASE="-march=native -mtune=native -O3"
+CONFIG_CXX_FLAGS_RELEASE=""
#
# Install paths