summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2017-08-14 15:24:11 +0000
committerjlam <jlam@pkgsrc.org>2017-08-14 15:24:11 +0000
commit6ca550e1cd7a105fba1436858ebdfee56774c279 (patch)
treef0a761ed18673cd2a95e95d6595875efbd082008 /math
parent64a8fcffe23bdde2d55c6a38ff991e7b548320e4 (diff)
downloadpkgsrc-6ca550e1cd7a105fba1436858ebdfee56774c279.tar.gz
math/ltm: Fix build caused by improper use of $(PREFIX).
The makefile.include fragment included by all of the project makefiles unconditionally sets $(CC), $(LD), $(AR) and $(RANLIB) to $(PREFIX){gcc,ld,ar,ranlib}. Their intent was to provide a facility for cross-compiling the code, but the use of $(PREFIX) for this purpose was unfortunate. This change adds a patch to set $(PREFIX) to the empty string in the makefiles, which should fix the problem with the smallest set of changes.
Diffstat (limited to 'math')
-rw-r--r--math/ltm/distinfo3
-rw-r--r--math/ltm/patches/patch-makefile.include15
2 files changed, 17 insertions, 1 deletions
diff --git a/math/ltm/distinfo b/math/ltm/distinfo
index 3e939e79ec6..c3c97eb30ea 100644
--- a/math/ltm/distinfo
+++ b/math/ltm/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2016/10/04 09:29:46 wiz Exp $
+$NetBSD: distinfo,v 1.8 2017/08/14 15:24:11 jlam Exp $
SHA1 (ltm-1.0.tar.xz) = 6293cf8bbc2051c6756f682ee3a4f50a0bdb7f80
RMD160 (ltm-1.0.tar.xz) = c132d12690de64d532fa04e627bceb44cac40fb6
SHA512 (ltm-1.0.tar.xz) = da2ced516106fb056373d97f9ac443805c57ebeb0a33982c14703d6dd8c3925e49aeb690b790ba91768ed5d41f5875dc50a3d3435dbb4088cfa3fddee9162082
Size (ltm-1.0.tar.xz) = 2191540 bytes
+SHA1 (patch-makefile.include) = fb48375698cffe7c22d1a5044595a147b70dbaf9
diff --git a/math/ltm/patches/patch-makefile.include b/math/ltm/patches/patch-makefile.include
new file mode 100644
index 00000000000..e7a29d704de
--- /dev/null
+++ b/math/ltm/patches/patch-makefile.include
@@ -0,0 +1,15 @@
+$NetBSD: patch-makefile.include,v 1.1 2017/08/14 15:24:11 jlam Exp $
+
+--- makefile.include.orig 2016-02-03 13:07:27.000000000 -0500
++++ makefile.include 2017-08-12 17:08:23.000000000 -0400
+@@ -10,9 +10,7 @@
+ default: ${LIBNAME}
+
+ # Compiler and Linker Names
+-ifndef PREFIX
+- PREFIX=
+-endif
++PREFIX=
+
+ ifeq ($(CC),cc)
+ CC = $(PREFIX)gcc