gdbm: fix build in case gdbm is not installed
This commit is contained in:
parent
9a874962e4
commit
18f0a8c588
@ -1,2 +1,2 @@
|
||||
13a8dfda02d8f0d1db1a982cd9950e7f gdbm-1.8.3-compat-linking.patch
|
||||
b29fe00543068ef12226cec83457716a gdbm-1.8.3-compat-linking.patch
|
||||
1d1b1d5c0245b1c00aff92da751e9aa1 gdbm-1.8.3.tar.gz
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
name=gdbm
|
||||
version=1.8.3
|
||||
release=2
|
||||
release=3
|
||||
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz
|
||||
$name-$version-compat-linking.patch)
|
||||
|
||||
@ -20,6 +20,8 @@ build() {
|
||||
make -j1 INSTALL_ROOT=$PKG install install-compat
|
||||
ln -sf gdbm/gdbm.h $PKG/usr/include/gdbm.h
|
||||
|
||||
sed -i "/dependency_libs/s|=.*$|='/usr/lib/libgdbm.la'|" $PKG/usr/lib/libgdbm_compat.la
|
||||
|
||||
rm -r $PKG/usr/info
|
||||
chown -R root.root $PKG
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ http://bugs.gentoo.org/165263
|
||||
rm -f libgdbm_compat.la
|
||||
$(LIBTOOL) --mode=link $(CC) -o libgdbm_compat.la -rpath $(libdir) \
|
||||
- -version-info $(SHLIB_VER) $(C_LOBJS)
|
||||
+ -version-info $(SHLIB_VER) $(C_LOBJS) libgdbm.la
|
||||
+ -version-info $(SHLIB_VER) $(C_LOBJS) libgdbm.la -L./.libs
|
||||
|
||||
gdbm.h: gdbm.proto gdbmerrno.h gdbm.proto2
|
||||
rm -f gdbm.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user