Skip to content

Commit

Permalink
Build: Pass CFLAGS for linking
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher committed Mar 17, 2024
1 parent 2997673 commit 9187a7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ UNINSMSG="\e[1;34mUNINS\e[0m %s\n"
ENABLE_STATIC :=
ifeq ($(ENABLE_STATIC),1)
CCFLAGS+=-static
LDFLAGS+=-static
endif

V :=
Expand Down Expand Up @@ -87,7 +86,7 @@ $(INSTDIR)/etc/$(PROJECT).yml : $(CONFIG)

$(TARGET) : $(LDOBJS) tp-build
$(ECHO_PREFIX) mkdir -p $(dir $@)
$(ECHO_PREFIX) $(CC) -o $@ $(LDOBJS) $(LDFLAGS)
$(ECHO_PREFIX) $(CC) $(CCFLAGS) -o $@ $(LDOBJS) $(LDFLAGS)
@printf $(LINKMSG) $@
$(ECHO_PREFIX) $(STRIP) $@
@printf $(STRIPMSG) $@
Expand Down

0 comments on commit 9187a7b

Please sign in to comment.