diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-05 07:37:48 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-05 07:37:48 +0000 |
commit | 5bd1a3cdb95569f0792aac23ad25333f131d3d1c (patch) | |
tree | 11256a8fe4ea47edf302d39685ab87efe54c6219 /mk | |
parent | 31c745b77aeb9cb81d834bc1b1b6d6f41939fe74 (diff) | |
download | pkgsrc-5bd1a3cdb95569f0792aac23ad25333f131d3d1c.tar.gz |
Pass the PATH when executing ${CC} so that the compiler may be found when
CC is something like ccache or distcc that relies on finding the true
compiler in the PATH.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 059a58ae4d1..f28504ecbf0 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1371 2004/02/05 05:05:54 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1372 2004/02/05 07:37:48 jlam Exp $ # # This file is in the public domain. # @@ -3005,6 +3005,7 @@ show-shlib-type: sotype=none; \ if [ "X${MKPIC}" != "Xno" -a "X${NOPIC}" = "X" ]; then \ ${ECHO} "int main() { return(0); }" > a.$$$$.c; \ + ${SETENV} PATH=${PATH} \ ${CC} ${CFLAGS} a.$$$$.c -o a.$$$$.out; \ case `${FILE_CMD} a.$$$$.out` in \ *ELF*dynamically*) \ |