summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-02-16 22:21:09 +0000
committerMike Frysinger <vapier@gentoo.org>2008-02-16 22:21:09 +0000
commit7f5e191f8457e9935c39b9d5f975d9ff06db2945 (patch)
tree99ce97e58f549bdd75353a4f792291945fc91dc0 /sys-libs
parentVersion bump. (diff)
downloadgentoo-2-7f5e191f8457e9935c39b9d5f975d9ff06db2945.tar.gz
gentoo-2-7f5e191f8457e9935c39b9d5f975d9ff06db2945.tar.bz2
gentoo-2-7f5e191f8457e9935c39b9d5f975d9ff06db2945.zip
Respect user LDFLAGS #209730 by Diego.
(Portage version: 2.2_pre2)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/gdbm/ChangeLog6
-rw-r--r--sys-libs/gdbm/files/gdbm-1.8.3-build.patch21
-rw-r--r--sys-libs/gdbm/gdbm-1.8.3-r4.ebuild9
3 files changed, 33 insertions, 3 deletions
diff --git a/sys-libs/gdbm/ChangeLog b/sys-libs/gdbm/ChangeLog
index d8af82fd467a..5c111e0ec650 100644
--- a/sys-libs/gdbm/ChangeLog
+++ b/sys-libs/gdbm/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-libs/gdbm
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/gdbm/ChangeLog,v 1.42 2008/01/26 10:20:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/gdbm/ChangeLog,v 1.43 2008/02/16 22:21:08 vapier Exp $
+
+ 16 Feb 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/gdbm-1.8.3-build.patch, gdbm-1.8.3-r4.ebuild:
+ Respect user LDFLAGS #209730 by Diego.
*gdbm-1.8.3-r4 (26 Jan 2008)
diff --git a/sys-libs/gdbm/files/gdbm-1.8.3-build.patch b/sys-libs/gdbm/files/gdbm-1.8.3-build.patch
new file mode 100644
index 000000000000..084f5a1d247a
--- /dev/null
+++ b/sys-libs/gdbm/files/gdbm-1.8.3-build.patch
@@ -0,0 +1,21 @@
+Respect system LDFLAGS when generating gdbm libs
+
+http://bugs.gentoo.org/209730
+
+--- Makefile.in
++++ Makefile.in
+@@ -146,12 +146,12 @@
+
+ libgdbm.la: $(LOBJS) gdbm.h
+ rm -f libgdbm.la
+- $(LIBTOOL) --mode=link $(CC) -o libgdbm.la -rpath $(libdir) \
++ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o libgdbm.la -rpath $(libdir) \
+ -version-info $(SHLIB_VER) $(LOBJS)
+
+ libgdbm_compat.la: $(C_LOBJS) gdbm.h libgdbm.la
+ rm -f libgdbm_compat.la
+- $(LIBTOOL) --mode=link $(CC) -o libgdbm_compat.la -rpath $(libdir) \
++ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o libgdbm_compat.la -rpath $(libdir) \
+ -version-info $(SHLIB_VER) $(C_LOBJS) libgdbm.la
+
+ gdbm.h: gdbm.proto gdbmerrno.h gdbm.proto2
diff --git a/sys-libs/gdbm/gdbm-1.8.3-r4.ebuild b/sys-libs/gdbm/gdbm-1.8.3-r4.ebuild
index e72e7dd415c3..4f7949bcbda2 100644
--- a/sys-libs/gdbm/gdbm-1.8.3-r4.ebuild
+++ b/sys-libs/gdbm/gdbm-1.8.3-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/gdbm/gdbm-1.8.3-r4.ebuild,v 1.1 2008/01/26 10:20:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/gdbm/gdbm-1.8.3-r4.ebuild,v 1.2 2008/02/16 22:21:08 vapier Exp $
inherit eutils libtool flag-o-matic
@@ -20,13 +20,18 @@ src_unpack() {
cd "${S}"
epatch "${FILESDIR}"/${P}-fix-install-ownership.patch #24178
epatch "${FILESDIR}"/${P}-compat-linking.patch #165263
+ epatch "${FILESDIR}"/${P}-build.patch #209730
elibtoolize
append-lfs-flags
}
src_compile() {
use berkdb || export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
- econf --includedir=/usr/include/gdbm || die
+ econf \
+ --includedir=/usr/include/gdbm \
+ --disable-dependency-tracking \
+ --enable-fast-install \
+ || die
emake || die
}