blob: e4782e41dd19d13aff618607ab2115212627c23a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/sh
#set -x
db_dist="../db/dist"
rm -f config.cache
# XXX hacks to get db-3.3.4 to configure properly
ln -sf ../dist $db_dist/../db/dist
ln -sf ../dist $db_dist
CC="$CC" CFLAGS="$CFLAGS" $db_dist/configure \
`echo $* | sed -e "s% --cache-file=.*$% --enable-shared --enable-static --enable-debug --enable-rpc --with-uniquename=rpmdb --srcdir=$db_dist%"`
# XXX hack to get db-3.3.4 to configure properly
rm -f $db_dist/../db/dist $db_dist/dist
mv Makefile Makefile.orig
cat Makefile.orig | sed -e 's/ -g$/ -g -O2/' -e '/^install:/c\
.PHONY: listobjs\
listobjs:\
@echo $(OBJS) $(C_OBJS) \
\
distdir install check:\
\
db3_install: all install_setip \\' > Makefile
mv db.h db.h.orig
cat db.h.orig | sed \
-e '/^struct __db;/i \
/*@-incondefs@*/' \
-e '/^struct __key_range;/a \
/*@=incondefs@*/' > db.h
# Generate manifest for rpmdb.
make -s listobjs > db3lobjs
|