| 1 | The librt functionality is built into libc on Android. |
| 2 | |
| 3 | The Termux git package installs git perl files to $PREFIX/share/git-perl |
| 4 | by patching perl/Makefile.PL, so setup that path when building perl |
| 5 | files in this Makefile. |
| 6 | |
| 7 | diff -u -r ../git-2.7.4/Makefile ./Makefile |
| 8 | --- ../git-2.7.4/Makefile 2016-03-17 16:47:59.000000000 -0400 |
| 9 | +++ ./Makefile 2016-03-24 22:46:20.335193973 -0400 |
| 10 | @@ -1455,7 +1455,6 @@ |
| 11 | |
| 12 | ifdef HAVE_CLOCK_GETTIME |
| 13 | BASIC_CFLAGS += -DHAVE_CLOCK_GETTIME |
| 14 | - EXTLIBS += -lrt |
| 15 | endif |
| 16 | |
| 17 | ifdef HAVE_CLOCK_MONOTONIC |
| 18 | @@ -1789,7 +1788,7 @@ |
| 19 | sed -e '1{' \ |
| 20 | -e ' s|#!.*perl|#!$(PERL_PATH_SQ)|' \ |
| 21 | -e ' h' \ |
| 22 | - -e ' s=.*=use lib (split(/$(pathsep)/, $$ENV{GITPERLLIB} || "'"$$INSTLIBDIR"'"));=' \ |
| 23 | + -e ' s=.*=use lib (split(/$(pathsep)/, $$ENV{GITPERLLIB} || "'"@TERMUX_PREFIX@/share/git-perl"'"));=' \ |
| 24 | -e ' H' \ |
| 25 | -e ' x' \ |
| 26 | -e '}' \ |