summaryrefslogtreecommitdiff
path: root/devel/ldpc/patches/patch-aa
blob: 511eea0c2f9def82358e55898aa38738b4beb6df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-aa,v 1.2 2013/05/11 21:21:22 agc Exp $

Refer to the file of random numbers in the correct location

Pick up ${CC} from environment if defined

--- Makefile.orig	2006-02-08 18:48:55.000000000 -0800
+++ Makefile	2013-05-11 13:54:48.000000000 -0700
@@ -25,8 +25,9 @@
 # make things more complex and error-prone.
 
 
-COMPILE = cc -c -O    # Command to compile a module from .c to .o
-LINK =    cc          # Command to link a program
+CC?= cc
+COMPILE = ${CC} -c -O    # Command to compile a module from .c to .o
+LINK =    ${CC}          # Command to link a program
 
 
 # MAKE ALL THE MAIN PROGRAMS.  First makes the modules used.
@@ -104,7 +105,7 @@
 	$(COMPILE) mod2sparse.c
 	$(COMPILE) mod2convert.c
 	$(COMPILE) distrib.c
-	$(COMPILE) -DRAND_FILE=\"`pwd`/randfile\" rand.c
+	$(COMPILE) -DRAND_FILE=\"${PREFIX}/share/ldpc/randfile\" rand.c
 
 
 # CLEAN UP ALL PROGRAMS AND REMOVE ALL FILES PRODUCED BY TESTS AND EXAMPLES.