1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 09:54:05 +00:00

makefile: use -Os on Windows

This commit is contained in:
Samuel Štancl 2025-01-04 14:18:12 +01:00
parent 381e71be92
commit 69067ed28e

View file

@ -2,13 +2,15 @@
OUTPUT := OUTPUT :=
CCFLAGS += -shared -Os
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
OUTPUT = lib/noattach.dll OUTPUT = lib/noattach.dll
CCFLAGS += -shared -Wl,--exclude-libs,ALL CCFLAGS += -Wl,--exclude-libs,ALL
CC = clang CC = clang
else else
UNAME := $(shell uname) UNAME := $(shell uname)
CCFLAGS += -fPIC -Os -shared CCFLAGS += -fPIC
ARCH := $(if $(ARCH),$(ARCH),$(shell uname -m)) ARCH := $(if $(ARCH),$(ARCH),$(shell uname -m))
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
ifeq ($(ARCH),arm64) ifeq ($(ARCH),arm64)