Skip to content

Commit

Permalink
Merge pull request #41 from jjsuwa-sys3175/fix_not_optimized
Browse files Browse the repository at this point in the history
Makefile: Add "-pipe -g -O2" to CFLAGS/CXXFLAGS
  • Loading branch information
earlephilhower committed Jul 21, 2022
2 parents ce0952a + 41cf123 commit e1b5672
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 e1b5672

Please sign in to comment.