Skip to content

Commit

Permalink
recode makefile link seting for optimize hpatchz file size;
Browse files Browse the repository at this point in the history
  • Loading branch information
housisong committed Jul 29, 2024
1 parent ddd8788 commit c7c2897
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -380,24 +380,24 @@ ifeq ($(STATIC_C),0)
else
PATCH_LINK += -static
endif
DIFF_LINK := $(PATCH_LINK)
ifeq ($(M32),0)
else
DIFF_LINK += -m32
PATCH_LINK += -m32
endif
ifeq ($(MINS),0)
else
DIFF_LINK += -s -Wl,--gc-sections,--as-needed
endif
ifeq ($(CL),1)
CXX := clang++
CC := clang
PATCH_LINK += -s -Wl,--gc-sections,--as-needed
endif
DIFF_LINK := $(PATCH_LINK)
ifeq ($(STATIC_CPP),0)
DIFF_LINK += -lstdc++
else
DIFF_LINK += -static-libstdc++
endif
ifeq ($(CL),1)
CXX := clang++
CC := clang
endif


CFLAGS += $(DEF_FLAGS)
Expand Down

0 comments on commit c7c2897

Please sign in to comment.