termux-packages/packages/kona/Makefile.patch
Fredrik Fornwall bb27a0ec42 Various package updates
Many of them cascading from the update of glib.
2016-05-04 08:54:30 -04:00

38 lines
1.4 KiB
Diff

diff -u -r ../kona-Win.3.39-69/Makefile ./Makefile
--- ../kona-Win.3.39-69/Makefile 2016-04-17 14:10:22.000000000 -0400
+++ ./Makefile 2016-05-03 14:21:25.497611299 -0400
@@ -1,10 +1,8 @@
-PREFIX = /usr/local
-CFLAGS=-g
-PRODFLAGS = -O3 #-pg -g3
+PRODFLAGS =
LIB=libkona.a
DEVFLAGS = -O0 -g3 -DDEBUG -Wunused -Wreturn-type -Wimplicit-int #-Wall
-OS := $(shell uname -s | tr "[:upper:]" "[:lower:]")
+OS := android
# Win-64
ifeq (mingw32_nt-6.2,$(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))