Skip to content

Commit

Permalink
Makefile: Add "-pipe -g -O2" to CFLAGS/CXXFLAGS
Browse files Browse the repository at this point in the history
This fixes that the host binaries (assmebler, compiler, linker and so on) are not optimized well.
  • Loading branch information
jjsuwa-sys3175 committed Jul 15, 2022
1 parent ce0952a commit 41cf123
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ endif
# Sets the environment variables for a subshell while building
setenv = export CFLAGS_FOR_TARGET=$(CFFT); \
export CXXFLAGS_FOR_TARGET=$(CFFT); \
export CFLAGS="-I$(call install,$(1))/include -pipe"; \
export CFLAGS="-I$(call install,$(1))/include -pipe -g -O2"; \
export CXXFLAGS="-pipe -g -O2"; \
export LDFLAGS="-L$(call install,$(1))/lib"; \
export PATH="$(call install,.stage.LINUX.stage)/bin:$${PATH}"; \
export LD_LIBRARY_PATH="$(call install,.stage.LINUX.stage)/lib:$${LD_LIBRARY_PATH}"
Expand Down

0 comments on commit 41cf123

Please sign in to comment.