Files
termux-packages/packages/quickjs/Makefile.patch
termux-pacman-bot ccfbb21070 quickjs: Fix build
when patch for libpthread is removed.

%ci:no-build
2023-02-13 13:34:42 +00:00

30 lines
707 B
Diff

--- ./Makefile.orig 2021-10-10 17:13:11.147988944 +0200
+++ ./Makefile 2021-10-10 17:12:41.424662424 +0200
@@ -76,7 +76,7 @@
CFLAGS += -Wchar-subscripts -funsigned-char
CFLAGS += -MMD -MF $(OBJDIR)/$(@F).d
ifdef CONFIG_DEFAULT_AR
- AR=$(CROSS_PREFIX)ar
+ AR ?= $(CROSS_PREFIX)ar
else
ifdef CONFIG_LTO
AR=$(CROSS_PREFIX)llvm-ar
@@ -95,7 +95,7 @@
AR=$(CROSS_PREFIX)ar
endif
endif
-STRIP=$(CROSS_PREFIX)strip
+STRIP ?= $(CROSS_PREFIX)strip
ifdef CONFIG_WERROR
CFLAGS+=-Werror
endif
@@ -112,7 +112,7 @@
CFLAGS_SMALL=$(CFLAGS) -Os
CFLAGS_OPT=$(CFLAGS) -O2
CFLAGS_NOLTO:=$(CFLAGS_OPT)
-LDFLAGS=-g
+LDFLAGS+=-g
ifdef CONFIG_LTO
CFLAGS_SMALL+=-flto
CFLAGS_OPT+=-flto