summaryrefslogtreecommitdiff
path: root/math/libtommath/files/patch-makefile.include
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2016-03-09 07:46:56 +0000
committerWen Heping <wen@FreeBSD.org>2016-03-09 07:46:56 +0000
commit8c2f29747a851ccdd65730cf192fab1f7f7efcee (patch)
tree77f0e2d790072f18a435b704409b61f285ec37a4 /math/libtommath/files/patch-makefile.include
parentUpdate to 1.7.1. (diff)
- Update to 1.0
PR: 207266 Submitted by: takefu@airport.fm
Diffstat (limited to 'math/libtommath/files/patch-makefile.include')
-rw-r--r--math/libtommath/files/patch-makefile.include47
1 files changed, 47 insertions, 0 deletions
diff --git a/math/libtommath/files/patch-makefile.include b/math/libtommath/files/patch-makefile.include
new file mode 100644
index 000000000000..9aa4bb7d7bf5
--- /dev/null
+++ b/math/libtommath/files/patch-makefile.include
@@ -0,0 +1,47 @@
+--- makefile.include.orig 2016-02-03 18:07:27 UTC
++++ makefile.include
+@@ -14,15 +14,15 @@ ifndef PREFIX
+ PREFIX=
+ endif
+
+-ifeq ($(CC),cc)
+- CC = $(PREFIX)gcc
+-endif
+-LD=$(PREFIX)ld
+-AR=$(PREFIX)ar
+-RANLIB=$(PREFIX)ranlib
++#ifeq ($(CC),cc)
++# CC = $(PREFIX)gcc
++#endif
++#LD=$(PREFIX)ld
++AR=$(shell which ar)
++RANLIB=$(shell which ranlib)
+
+ ifndef MAKE
+- MAKE=make
++ MAKE=$(shell which gmake)
+ endif
+
+ CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow
+@@ -55,7 +55,7 @@ endif # COMPILE_SIZE
+ endif # COMPILE_DEBUG
+
+ # adjust coverage set
+-ifneq ($(filter $(shell arch), i386 i686 x86_64 amd64 ia64),)
++ifneq ($(filter $(shell /sbin/sysctl -b hw.machine_arch), i386 i686 x86_64 amd64 ia64),)
+ COVERAGE = test_standalone timing
+ COVERAGE_APP = ./test && ./ltmtest
+ else
+@@ -71,9 +71,9 @@ test_standalone: CFLAGS+=-DLTM_DEMO_TEST
+ #LIBPATH-The directory for libtommath to be installed to.
+ #INCPATH-The directory to install the header files for libtommath.
+ #DATAPATH-The directory to install the pdf docs.
+-LIBPATH?=/usr/lib
+-INCPATH?=/usr/include
+-DATAPATH?=/usr/share/doc/libtommath/pdf
++LIBPATH?=$(PREFIX)/lib
++INCPATH?=$(PREFIX)/include
++DATAPATH?=$(DOCSDIR)/pdf
+
+ #make the code coverage of the library
+ #