pkgsrc/parallel/pvm3/patches/patch-an
dmcmahill 3af15b801a Pass down CFLAGS, FFLAGS and fix the quoting of CC and F77. This ensures
you can do something like:

make CC="gcc -pipe" PKG_FC="f77 -pipe" CFLAGS="-Wformat -g" FFLAGS="-g"

and still have pvm compile correctly.

Addresses PR pkg/12949 submitted by Thor Simon <tls@cs.stevens-tech.edu>.
2001-05-24 19:32:32 +00:00

22 lines
450 B
Text

$NetBSD: patch-an,v 1.4 2001/05/24 19:32:32 dmcmahill Exp $
passdown {C,F}FLAGS and also quote stuff so
CC=gcc -pipe
works
--- Makefile.aimk.orig Mon Aug 11 10:38:48 1997
+++ Makefile.aimk Tue May 15 22:29:18 2001
@@ -34,9 +34,9 @@
#
-PVMOPTS = CC=$(CC) \
- F77=$(F77)
+PVMOPTS = CC="$(CC)" \
+ F77="$(F77)" \
+ CFLOPTS="$(CFLAGS)" \
+ FFLOPTS="$(FFLAGS)"
-# CFLOPTS=$(CFLOPTS)
-# FFLOPTS=$(FFLOPTS)
# PVMDIR=$(PVMDIR)