From 888aacc68c1a128f2806be185f762efc3498db87 Mon Sep 17 00:00:00 2001 From: grant Date: Sun, 13 Jul 2003 13:27:18 +0000 Subject: move gcc selection back to bsd.pkg.mk as the top-level Makefile includes bsd.prefs.mk. --- mk/bsd.pkg.mk | 16 +++++++++++++++- mk/bsd.prefs.mk | 16 +--------------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 6e68498d2d6..dc6f4504ead 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1215 2003/07/13 13:10:43 grant Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1216 2003/07/13 13:27:18 grant Exp $ # # This file is in the public domain. # @@ -314,6 +314,20 @@ MAKE_ENV+= CXX="${CXX}" MAKE_ENV+= CPP="${CPP}" .endif +# Ensure the correct rpath is passed to the linker to enable packages +# to find shared libraries from gcc. Has no effect when pkgsrc gcc is +# not being used. +# +# Valid compilers are: +# +# USE_GCC2 - GNU Compiler Collection 2.x +# USE_GCC3 - GNU Compiler Collection 3.x +# USE_MIPSPRO - Silicon Graphics, Inc. MIPSpro Compiler +# USE_SUNPRO - Sun Microsystems, Inc. WorkShop/Forte/Sun ONE Studio +# Compiler Collection +# +.include "../../mk/gcc.buildlink2.mk" + # export the flags needed to compile and link pthreaded code MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" MAKE_ENV+= PTHREAD_LDFLAGS="${PTHREAD_LDFLAGS}" diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 581a2286a30..93c52382d44 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.117 2003/07/13 13:10:43 grant Exp $ +# $NetBSD: bsd.prefs.mk,v 1.118 2003/07/13 13:27:18 grant Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -343,18 +343,4 @@ _COMPILER_LD_FLAG= # pattern for Sun compilers _COMPILER_LD_FLAG= -Wl, # pattern for GCC and others .endif -# Ensure the correct rpath is passed to the linker to enable packages -# to find shared libraries from gcc. Has no effect when pkgsrc gcc is -# not being used. -# -# Valid compilers are: -# -# USE_GCC2 - GNU Compiler Collection 2.x -# USE_GCC3 - GNU Compiler Collection 3.x -# USE_MIPSPRO - Silicon Graphics, Inc. MIPSpro Compiler -# USE_SUNPRO - Sun Microsystems, Inc. WorkShop/Forte/Sun ONE Studio -# Compiler Collection -# -.include "../../mk/gcc.buildlink2.mk" - .endif # BSD_PKG_MK -- cgit v1.2.3