ports/unix/Makefile: Don't assume Linux by default.

Motivation: allow to override this with "make UNAME_S=wasi"

Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
pull/13676/head
YAMAMOTO Takashi 2024-02-13 16:30:50 +09:00
rodzic 64f28dc1eb
commit f71be92b4d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -103,7 +103,7 @@ CC = clang
endif
# Use clang syntax for map file
LDFLAGS_ARCH = -Wl,-map,$@.map -Wl,-dead_strip
else
else ifeq ($(UNAME_S),Linux)
# Use gcc syntax for map file
LDFLAGS_ARCH = -Wl,-Map=$@.map,--cref -Wl,--gc-sections
endif