termux-packages/packages/kona/Makefile.patch

38 lines
1.4 KiB
Diff

diff -uNr kona-Win64-20190226/Makefile kona-Win64-20190226.mod/Makefile
--- kona-Win64-20190226/Makefile 2019-02-26 22:13:07.000000000 +0200
+++ kona-Win64-20190226.mod/Makefile 2019-05-21 14:37:07.394973847 +0300
@@ -1,10 +1,8 @@
-PREFIX = /usr/local
-CFLAGS=-g
-PRODFLAGS = -O3 #-pg -g3
+PRODFLAGS =
LIB=libkona.a
DEVFLAGS = -O0 -g3 -DDEBUG -Wall
-OS := $(shell uname -s | tr "[:upper:]" "[:lower:]")
+OS := android
# Win-64
ifeq (msys_nt-10.0,$(OS))
@@ -30,16 +28,12 @@
endif
ifeq (android,$(OS))
-CC=arm-linux-androideabi-gcc
-OBJS= src/0.o src/bswap.o src/c.o src/getline.o src/getline_android.o src/mt.o src/p.o \
+OBJS= src/0.o src/bswap.o src/c.o src/getline.o src/mt.o src/p.o \
src/r.o src/k.o src/kc.o src/kx.o src/kg.o src/km.o src/kn.o src/ko.o \
src/ks.o src/v.o src/va.o src/vc.o src/vd.o src/vf.o src/vg.o src/vq.o
-LDFLAGS = -Wl,--gc-sections -Wl,-z,nocopyreloc -lgcc -no-canonical-prefixes \
- -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -mthumb \
- -lc -lm -ldl
-CFLAGS += -fPIE -fpic -ffunction-sections -funwind-tables -fstack-protector \
- -no-canonical-prefixes -mtune=xscale -msoft-float -mthumb \
- -fomit-frame-pointer -fno-strict-aliasing
+LDFLAGS += -Wl,--gc-sections -Wl,-z,nocopyreloc -lgcc -no-canonical-prefixes \
+ -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now \
+ -lm
endif
ifeq (linux,$(OS))