From 4c4b9d15ab94dfe31ec34559ab70bafc0ef11f02 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 20 Jun 2014 20:33:20 +0300 Subject: [PATCH] mkrules.mk: Pass $(COPT) to link stage. In generalize case, optimization options should be passed to all stages of the build process. --- py/mkrules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/mkrules.mk b/py/mkrules.mk index ab8948ade8..6153618fae 100644 --- a/py/mkrules.mk +++ b/py/mkrules.mk @@ -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