mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 23:54:03 +00:00
makefile: use -Os on Windows
This commit is contained in:
parent
381e71be92
commit
69067ed28e
1 changed files with 4 additions and 2 deletions
|
|
@ -2,13 +2,15 @@
|
|||
|
||||
OUTPUT :=
|
||||
|
||||
CCFLAGS += -shared -Os
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
OUTPUT = lib/noattach.dll
|
||||
CCFLAGS += -shared -Wl,--exclude-libs,ALL
|
||||
CCFLAGS += -Wl,--exclude-libs,ALL
|
||||
CC = clang
|
||||
else
|
||||
UNAME := $(shell uname)
|
||||
CCFLAGS += -fPIC -Os -shared
|
||||
CCFLAGS += -fPIC
|
||||
ARCH := $(if $(ARCH),$(ARCH),$(shell uname -m))
|
||||
ifeq ($(UNAME),Darwin)
|
||||
ifeq ($(ARCH),arm64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue