0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/chicken/Makefile.android.patch
Aditya Alok f295c0e71d
add(main): new package chicken
Closes #10845

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-05-29 16:06:37 +05:30

26 lines
965 B
Diff

--- ./Makefile.android.orig 2022-05-29 07:35:44.708983344 +0000
+++ ./Makefile.android 2022-05-29 10:03:05.522168915 +0000
@@ -31,7 +31,7 @@
# options
-C_COMPILER_OPTIONS ?= -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
+C_COMPILER_OPTIONS ?= -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H $(CFLAGS)
ifdef DEBUGBUILD
C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
else
@@ -46,11 +46,11 @@
LINKER_LINK_SHARED_PROGRAM_OPTIONS = -Wl,-rpath="$(RUNTIME_LINKER_PATH)"
# Android NDK build system currently does not understand
# versioned sonames, so don't try to embed a soname.
-#LIBCHICKEN_SO_LINKER_OPTIONS = -Wl,-soname,lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX).so.$(BINARYVERSION)
-LIBRARIES = -lm -ldl -llog
+LIBCHICKEN_SO_LINKER_OPTIONS = -Wl,-soname,lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX).so.$(BINARYVERSION)
+LIBRARIES = -lm -ldl
NEEDS_RELINKING = yes
# See above
-#USES_SONAME = yes
+USES_SONAME = yes
# special files