summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrant <grant>2005-07-21 03:06:13 +0000
committergrant <grant>2005-07-21 03:06:13 +0000
commit448bca6f68068abda1d1af43df1d7b0314cbdafe (patch)
tree0a3030f1ead7bc1dc1fedd2db9727bb2e145c645
parent5fd2f64878fe61077924de96115464b9c81d0bc8 (diff)
downloadpkgsrc-448bca6f68068abda1d1af43df1d7b0314cbdafe.tar.gz
use ${LDFLAGS} instead of building our own library rpath argument to
find the BerkeleyDB library.
-rw-r--r--mail/exim/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile
index 1688c0d2959..dbf6265267d 100644
--- a/mail/exim/Makefile
+++ b/mail/exim/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.60 2005/07/20 06:32:29 grant Exp $
+# $NetBSD: Makefile,v 1.61 2005/07/21 03:06:13 grant Exp $
DISTNAME= exim-4.52
CATEGORIES= mail net
@@ -48,19 +48,19 @@ BDB_ACCEPTED?= db1 db2 db3 db4
.if defined(EXIM_DB) && ${EXIM_DB} == "gdbm"
. include "../../databases/gdbm/buildlink3.mk"
EXIM_USE_DB_CONFIG= USE_GDBM=yes
-EXIM_DBMLIB= DBMLIB=${COMPILER_RPATH_FLAG}${LOCALBASE}/${BUILDLINK_LIBDIRS.gdbm} -lgdbm
+EXIM_DBMLIB= DBMLIB=${LDFLAGS} -lgdbm
EXIM_INCLUDE= -I${PREFIX}/include
.else # use native or Berkeley DB as defined by BDB_DEFAULT and BDB_ACCEPTED
. include "../../mk/bdb.buildlink3.mk"
EXIM_USE_DB_CONFIG= USE_DB=yes # the default
. if ${BDB_TYPE} == "db4"
-EXIM_DBMLIB= DBMLIB=${COMPILER_RPATH_FLAG}${LOCALBASE}/${BUILDLINK_LIBDIRS.db4} ${BDB_LIBS}
+EXIM_DBMLIB= DBMLIB=${LDFLAGS} ${BDB_LIBS}
EXIM_INCLUDE= -I${PREFIX}/${BUILDLINK_INCDIRS.db4}
. elif ${BDB_TYPE} == "db3"
-EXIM_DBMLIB= DBMLIB=${COMPILER_RPATH_FLAG}${LOCALBASE}/${BUILDLINK_LIBDIRS.db3} ${BDB_LIBS}
+EXIM_DBMLIB= DBMLIB=${LDFLAGS} ${BDB_LIBS}
EXIM_INCLUDE= -I${PREFIX}/${BUILDLINK_INCDIRS.db3}
. elif ${BDB_TYPE} == "db2"
-EXIM_DBMLIB= DBMLIB=${COMPILER_RPATH_FLAG}${LOCALBASE}/${BUILDLINK_LIBDIRS.db2} ${BDB_LIBS}
+EXIM_DBMLIB= DBMLIB=${LDFLAGS} ${BDB_LIBS}
EXIM_INCLUDE= -I${PREFIX}/${BUILDLINK_INCDIRS.db2}
. else # using native
EXIM_DBMLIB= # empty so use defaults