pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/ltm math/ltm: Fix build caused by improper use of...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/02931d42dba4
branches:  trunk
changeset: 366396:02931d42dba4
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Aug 14 15:24:11 2017 +0000

description:
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:

 math/ltm/distinfo                       |   3 ++-
 math/ltm/patches/patch-makefile.include |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 560f486c3a64 -r 02931d42dba4 math/ltm/distinfo
--- a/math/ltm/distinfo Mon Aug 14 12:00:35 2017 +0000
+++ b/math/ltm/distinfo Mon Aug 14 15:24:11 2017 +0000
@@ -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 -r 560f486c3a64 -r 02931d42dba4 math/ltm/patches/patch-makefile.include
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/ltm/patches/patch-makefile.include   Mon Aug 14 15:24:11 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index