Mon Aug 14 15:24:11 2017 UTC ()
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.
(jlam)
diff -r1.7 -r1.8 pkgsrc/math/ltm/distinfo
diff -r0 -r1.1 pkgsrc/math/ltm/patches/patch-makefile.include
--- pkgsrc/math/ltm/distinfo 2016/10/04 09:29:46 1.7
+++ pkgsrc/math/ltm/distinfo 2017/08/14 15:24:11 1.8
| @@ -1,6 +1,7 @@ | | | @@ -1,6 +1,7 @@ |
1 | $NetBSD: distinfo,v 1.7 2016/10/04 09:29:46 wiz Exp $ | | 1 | $NetBSD: distinfo,v 1.8 2017/08/14 15:24:11 jlam Exp $ |
2 | | | 2 | |
3 | SHA1 (ltm-1.0.tar.xz) = 6293cf8bbc2051c6756f682ee3a4f50a0bdb7f80 | | 3 | SHA1 (ltm-1.0.tar.xz) = 6293cf8bbc2051c6756f682ee3a4f50a0bdb7f80 |
4 | RMD160 (ltm-1.0.tar.xz) = c132d12690de64d532fa04e627bceb44cac40fb6 | | 4 | RMD160 (ltm-1.0.tar.xz) = c132d12690de64d532fa04e627bceb44cac40fb6 |
5 | SHA512 (ltm-1.0.tar.xz) = da2ced516106fb056373d97f9ac443805c57ebeb0a33982c14703d6dd8c3925e49aeb690b790ba91768ed5d41f5875dc50a3d3435dbb4088cfa3fddee9162082 | | 5 | SHA512 (ltm-1.0.tar.xz) = da2ced516106fb056373d97f9ac443805c57ebeb0a33982c14703d6dd8c3925e49aeb690b790ba91768ed5d41f5875dc50a3d3435dbb4088cfa3fddee9162082 |
6 | Size (ltm-1.0.tar.xz) = 2191540 bytes | | 6 | Size (ltm-1.0.tar.xz) = 2191540 bytes |
| | | 7 | SHA1 (patch-makefile.include) = fb48375698cffe7c22d1a5044595a147b70dbaf9 |
$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