Skip to content

Commit 4c4b9d1

Browse files
committed
mkrules.mk: Pass $(COPT) to link stage.
In generalize case, optimization options should be passed to all stages of the build process.
1 parent 0fc7efb commit 4c4b9d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/mkrules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ all: $(PROG)
7373

7474
$(PROG): $(OBJ)
7575
$(ECHO) "LINK $@"
76-
$(Q)$(CC) -o $@ $(OBJ) $(LIB) $(LDFLAGS)
76+
$(Q)$(CC) $(COPT) -o $@ $(OBJ) $(LIB) $(LDFLAGS)
7777
ifndef DEBUG
7878
$(Q)$(STRIP) $(STRIPFLAGS_EXTRA) $(PROG)
7979
endif

0 commit comments

Comments
 (0)