mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-23 14:56:16 +00:00
47 lines
1.1 KiB
Diff
47 lines
1.1 KiB
Diff
--- ../Makefile.orig 2018-05-15 18:08:02.956789845 +0000
|
|
+++ ./Makefile 2018-05-15 18:29:20.181951320 +0000
|
|
@@ -13,10 +13,10 @@
|
|
CROSS_COMPILE=
|
|
|
|
# Support for compressed pci.ids (yes/no, default: detect)
|
|
-ZLIB=
|
|
+ZLIB=yes
|
|
|
|
# Support for resolving ID's by DNS (yes/no, default: detect)
|
|
-DNS=
|
|
+DNS=no
|
|
|
|
# Build libpci as a shared library (yes/no; or local for testing; requires GCC)
|
|
SHARED=no
|
|
@@ -32,9 +32,9 @@
|
|
ABI_VERSION=3
|
|
|
|
# Installation directories
|
|
-PREFIX=/usr/local
|
|
+PREFIX?=@TERMUX_PREFIX@
|
|
BINDIR=$(PREFIX)/bin
|
|
-SBINDIR=$(PREFIX)/sbin
|
|
+SBINDIR=$(PREFIX)/bin
|
|
SHAREDIR=$(PREFIX)/share
|
|
IDSDIR=$(SHAREDIR)
|
|
MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi)
|
|
@@ -47,13 +47,12 @@
|
|
DIRINSTALL=install -d
|
|
-STRIP=-s
|
|
+STRIP=-s --strip-program llvm-strip
|
|
ifdef CROSS_COMPILE
|
|
-STRIP+=--strip-program $(CROSS_COMPILE)strip
|
|
-CC=$(CROSS_COMPILE)gcc
|
|
+CC?=$(CROSS_COMPILE)gcc
|
|
else
|
|
-CC=cc
|
|
+CC?=cc
|
|
endif
|
|
-AR=$(CROSS_COMPILE)ar
|
|
-RANLIB=$(CROSS_COMPILE)ranlib
|
|
+AR?=$(CROSS_COMPILE)ar
|
|
+RANLIB?=$(CROSS_COMPILE)ranlib
|
|
DLLTOOL=$(CROSS_COMPILE)dlltool
|
|
WINDRES=$(CROSS_COMPILE)windres
|
|
|