tdb: add a patch to link tdb utils to libtdb dynamically, needs docbook-xsl builddep.
This commit is contained in:
parent
815d0d66a3
commit
5a824737f0
22
srcpkgs/tdb/patches/tdb-utils-linking-order.patch
Normal file
22
srcpkgs/tdb/patches/tdb-utils-linking-order.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- tdb.mk.orig 2011-11-16 14:59:11.561978836 +0100
|
||||
+++ tdb.mk 2011-11-16 15:01:20.037847681 +0100
|
||||
@@ -15,16 +15,16 @@ bin/tdbtest$(EXEEXT): tools/tdbtest.o $(
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtest tools/tdbtest.o -L. -ltdb -lgdbm $(TDB_DEPS)
|
||||
|
||||
bin/tdbtool$(EXEEXT): tools/tdbtool.o $(TDB_LIB)
|
||||
- $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtool tools/tdbtool.o -L. -ltdb $(TDB_DEPS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) tools/tdbtool.o $(TDB_DEPS) $(TDB_SOLIB) -o bin/tdbtool
|
||||
|
||||
bin/tdbtorture$(EXEEXT): tools/tdbtorture.o $(TDB_LIB)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtorture tools/tdbtorture.o -L. -ltdb $(TDB_DEPS)
|
||||
|
||||
bin/tdbdump$(EXEEXT): tools/tdbdump.o $(TDB_LIB)
|
||||
- $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbdump tools/tdbdump.o -L. -ltdb $(TDB_DEPS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) tools/tdbdump.o $(TDB_DEPS) $(TDB_SOLIB) -o bin/tdbdump
|
||||
|
||||
bin/tdbbackup$(EXEEXT): tools/tdbbackup.o $(TDB_LIB)
|
||||
- $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbbackup tools/tdbbackup.o -L. -ltdb $(TDB_DEPS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) tools/tdbbackup.o $(TDB_DEPS) $(TDB_SOLIB) -o bin/tdbbackup
|
||||
|
||||
test:: abi_checks
|
||||
|
|
@ -14,19 +14,17 @@ long_desc="
|
|||
|
||||
subpackages="libtdb tdb-devel tdb-python"
|
||||
|
||||
|
||||
Add_dependency build pkg-config
|
||||
Add_dependency build automake
|
||||
Add_dependency build python-devel
|
||||
Add_dependency build libxslt
|
||||
Add_dependency build docbook-xsl
|
||||
|
||||
pre_configure()
|
||||
{
|
||||
cd ${wrksrc} && ./autogen.sh
|
||||
pre_configure() {
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
post_install()
|
||||
{
|
||||
post_install() {
|
||||
# _PUBLIC_ is only defined internally!
|
||||
sed -i -e "s|_PUBLIC_ ||g" ${DESTDIR}/usr/include/tdb.h
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user