Makefile: delete debug libs when debug is not enabled
authorDanomi Manchego <danomimanchego123@gmail.com>
Tue, 14 Jul 2020 02:25:54 +0000 (22:25 -0400)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 14 Jul 2020 08:10:02 +0000 (10:10 +0200)
commit04e9a1ec8c0dee17728f7a213855bef2f8300b64
treeb99255473f50d65cb331eb80edccd5dfcf1d2750
parentf32cf8e7527990b603d8c05b35be93b55d7a9f53
Makefile: delete debug libs when debug is not enabled

Some toolchains, like the Linaro gcc7 toolchains, now install libstdc++ debug
library symbols to /lib/debug, which can be as large as the library itself.
This commit removes the extra debug content if debugging is not enabled.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Makefile