Skip to content

Commit 41cf123

Browse files
Makefile: Add "-pipe -g -O2" to CFLAGS/CXXFLAGS
This fixes that the host binaries (assmebler, compiler, linker and so on) are not optimized well.
1 parent ce0952a commit 41cf123

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ endif
290290
# Sets the environment variables for a subshell while building
291291
setenv = export CFLAGS_FOR_TARGET=$(CFFT); \
292292
export CXXFLAGS_FOR_TARGET=$(CFFT); \
293-
export CFLAGS="-I$(call install,$(1))/include -pipe"; \
293+
export CFLAGS="-I$(call install,$(1))/include -pipe -g -O2"; \
294+
export CXXFLAGS="-pipe -g -O2"; \
294295
export LDFLAGS="-L$(call install,$(1))/lib"; \
295296
export PATH="$(call install,.stage.LINUX.stage)/bin:$${PATH}"; \
296297
export LD_LIBRARY_PATH="$(call install,.stage.LINUX.stage)/lib:$${LD_LIBRARY_PATH}"

0 commit comments

Comments
 (0)