Skip to content

Commit

Permalink
WIP ???
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Nov 13, 2023
1 parent 6342348 commit 5b04dbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions depends/hosts/default.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ $(host_arch)_$(host_os)_$(release_type)_$1 += $($(host_os)_$(release_type)_$1)
endif
host_$1 = $$($(host_arch)_$(host_os)_$1)
host_$(release_type)_$1 = $$($(host_arch)_$(host_os)_$(release_type)_$1)
host_$(release_type)_$1 += $$($(host_os)_LTO_$1)
endef

$(foreach tool,CC CXX AR RANLIB STRIP LIBTOOL NM OBJCOPY OTOOL INSTALL_NAME_TOOL DSYMUTIL,$(eval $(call add_host_tool_func,$(tool))))
Expand Down
6 changes: 3 additions & 3 deletions depends/hosts/linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ linux_CFLAGS=-pipe -std=$(C_STANDARD)
linux_CXXFLAGS=-pipe -std=$(CXX_STANDARD)

ifneq ($(LTO),)
linux_CFLAGS += -flto
linux_CXXFLAGS += -flto
linux_LDFLAGS += -flto
linux_LTO_CFLAGS += -flto
linux_LTO_CXXFLAGS += -flto
linux_LTO_LDFLAGS += -flto

linux_AR = $(host_toolchain)gcc-ar
linux_NM = $(host_toolchain)gcc-nm
Expand Down

0 comments on commit 5b04dbe

Please sign in to comment.