Skip to content

Commit e1b5672

Browse files
Merge pull request earlephilhower#41 from jjsuwa-sys3175/fix_not_optimized
Makefile: Add "-pipe -g -O2" to CFLAGS/CXXFLAGS
2 parents ce0952a + 41cf123 commit e1b5672

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)