2023-08-16 22:26:55 +00:00
|
|
|
Index: Makerules
|
|
|
|
--- Makerules.orig
|
|
|
|
+++ Makerules
|
2023-09-08 05:21:37 +00:00
|
|
|
@@ -92,7 +92,7 @@ ifeq ($(build),debug)
|
2023-08-16 22:26:55 +00:00
|
|
|
CFLAGS += -pipe -g
|
|
|
|
LDFLAGS += -g
|
|
|
|
else ifeq ($(build),release)
|
2023-09-08 05:21:37 +00:00
|
|
|
- CFLAGS += -pipe -O2 -DNDEBUG
|
2023-08-16 22:26:55 +00:00
|
|
|
+ CFLAGS += -DNDEBUG
|
|
|
|
LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
|
2023-09-08 05:21:37 +00:00
|
|
|
else ifeq ($(build),small)
|
|
|
|
CFLAGS += -pipe -Os -DNDEBUG
|
|
|
|
@@ -180,9 +180,9 @@ else ifeq ($(OS),MACOS)
|
2023-08-16 22:26:55 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
-else ifeq ($(OS),Linux)
|
2023-09-08 05:21:37 +00:00
|
|
|
+else ifneq (,$(filter $(OS),Linux OpenBSD))
|
|
|
|
ifeq ($(PYODIDE_ROOT),)
|
|
|
|
- HAVE_OBJCOPY := yes
|
|
|
|
+ HAVE_OBJCOPY ?= yes
|
|
|
|
else
|
|
|
|
# Pyodide's ld does not support -b so we cannot use it to create object
|
|
|
|
# files containing font data, so leave HAVE_OBJCOPY unset. And we need
|