File: Use-system-provided-environment-when-building-the-test-su.patch

package info (click to toggle)
cminpack 1.3.6-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,764 kB
  • sloc: ansic: 11,627; fortran: 5,648; makefile: 453; f90: 354; sh: 10
file content (29 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (3)
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
From: Ole Streicher <debian@liska.ath.cx>
Date: Thu, 29 May 2014 10:09:47 +0200
Subject: Use system provided environment when building the test suite

---
 examples/Makefile | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/examples/Makefile b/examples/Makefile
index 63d9781..9f2bf26 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -10,10 +10,12 @@ F77=gfortran
 #F77CFLAGS=-g
 
 # uncomment the following for C MINPACK
-MINPACK=../libcminpack$(LIBSUFFIX).a
-CC=gcc
-CFLAGS=-g -Wall
-CPPFLAGS=-I..
+MINPACK=
+#CC=gcc
+#CFLAGS=-g -Wall
+CPPFLAGS+=-I..
+LIBPATH=$(shell echo ../obj-*)
+LDADD+=-L$(LIBPATH) -lcminpack -Wl,-rpath -Wl,$(LIBPATH)
 
 FMINPACK=../fortran/libminpack.a