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:
parent
381e71be92
commit
69067ed28e
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue