pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc3-c Fix build on MKGCC=no systems



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6ea69942126c
branches:  trunk
changeset: 648843:6ea69942126c
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Mar 21 01:17:08 2015 +0000

description:
Fix build on MKGCC=no systems

diffstat:

 lang/gcc3-c/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 47f2be273387 -r 6ea69942126c lang/gcc3-c/Makefile
--- a/lang/gcc3-c/Makefile      Sat Mar 21 01:06:49 2015 +0000
+++ b/lang/gcc3-c/Makefile      Sat Mar 21 01:17:08 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2012/10/02 20:11:40 asau Exp $
+# $NetBSD: Makefile,v 1.28 2015/03/21 01:17:08 tnn Exp $
 
 PKGNAME=       gcc3${GCC3_PKGMODIF}-c-${GCC_VERSION}
 PKGREVISION=   1
@@ -17,8 +17,10 @@
 
 .include "../../mk/compiler.mk"
 
-.if empty(CC_VERSION:Mgcc-*)
+.if empty(PKGSRC_COMPILER:Mgcc)
 BUILD_TARGET=  bootstrap
+# make it find it's own libgcc_s.so.1, the system might not provide it
+MAKE_ENV+=     LD_LIBRARY_PATH=${WRKSRC}/gcc
 .endif
 
 post-build:



Home | Main Index | Thread Index | Old Index