Add linker stripping flag.

This commit is contained in:
inference 2023-01-17 05:05:52 +00:00
parent b2b5946df7
commit c8d2974c94
Signed by: inference
SSH Key Fingerprint: SHA256:9Pl0nZ2UJacgm+IeEtLSZ4FOESgP1eKCtRflfPfdX9M

View File

@ -3,7 +3,7 @@
# Copyright 2022-2023 Inference
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Version: 1.0.0.3
# Version: 2.0.0.4
# Toolchain
@ -26,4 +26,4 @@ STRIP="strip"
CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe -U__gnu_linux__"
CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe"
## Linker flags
LDFLAGS="-Wl,-O2"
LDFLAGS="-Wl,-O2 -Wl,--strip-all"