make V=1 no longer spews linker garbage collection

make V=99 will, if you realllly want it.
This commit is contained in:
Karl Palsson
2014-04-04 22:31:32 +00:00
parent 6960d2adef
commit 05d46ab6cd
2 changed files with 9 additions and 1 deletions

8
README
View File

@@ -18,6 +18,14 @@ preferably via a github pull request.
Usage Usage
----- -----
You _must_ run "make" in the top level directory first. This builds the
library and all examples. If you're simply hacking on a single example after
that, you can type "make clean; make" in any of the individual project
directories later.
For more verbose output, to see compiler command lines, use "make V=1"
For insanity levels of verboseness, use "make V=99"
The makefiles are generally useable for your own projects with The makefiles are generally useable for your own projects with
only minimal changes for the libopencm3 install path (See Reuse) only minimal changes for the libopencm3 install path (See Reuse)

View File

@@ -105,7 +105,7 @@ LDFLAGS += -L$(LIB_DIR)
LDFLAGS += -T$(LDSCRIPT) LDFLAGS += -T$(LDSCRIPT)
LDFLAGS += -Wl,-Map=$(*).map LDFLAGS += -Wl,-Map=$(*).map
LDFLAGS += -Wl,--gc-sections LDFLAGS += -Wl,--gc-sections
ifeq ($(V),1) ifeq ($(V),99)
LDFLAGS += -Wl,--print-gc-sections LDFLAGS += -Wl,--print-gc-sections
endif endif