mkrules.mk: Pass $(COPT) to link stage.

In generalize case, optimization options should be passed to all stages of
the build process.
This commit is contained in:
Paul Sokolovsky 2014-06-20 20:33:20 +03:00
parent 0fc7efb663
commit 4c4b9d15ab

View File

@ -73,7 +73,7 @@ all: $(PROG)
$(PROG): $(OBJ)
$(ECHO) "LINK $@"
$(Q)$(CC) -o $@ $(OBJ) $(LIB) $(LDFLAGS)
$(Q)$(CC) $(COPT) -o $@ $(OBJ) $(LIB) $(LDFLAGS)
ifndef DEBUG
$(Q)$(STRIP) $(STRIPFLAGS_EXTRA) $(PROG)
endif