0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-11 17:53:09 +00:00
Files
termux-packages/packages/libowfat/GNUmakefile.patch
Henrik Grimler 986babfda7 tree-wide: remove pthread/rt patches and workarounds
Commit af18f1dac0 ("scripts: start_build: create libpthread and
librt as well") added helper libs so that packages that try to find
these libs can do so.

%ci:no-build
2023-02-13 05:56:37 +00:00

26 lines
512 B
Diff

--- a/GNUmakefile
+++ b/GNUmakefile
@@ -41,8 +41,8 @@
DEFINE=-D_REENTRANT
-CFLAGS=-pipe $(WARN) $(DEFINE) $(OPT_REG)
-CFLAGS_OPT=-pipe $(WARN) $(DEFINE) $(OPT_PLUS)
+CFLAGS+=-pipe $(WARN) $(DEFINE)
+CFLAGS_OPT=$(CFLAGS)
#CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
@@ -68,9 +68,9 @@
endif
gcc_path = $(foreach dir,$(path),$(wildcard $(dir)/gcc))
ifeq ($(strip $(gcc_path)),)
-CC=clang
+CC?=clang
else
-CC=gcc
+CC?=gcc
endif
ifneq ($(DIET),)