summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-06-20 15:10:11 +0000
committerFrancois Pons <fpons@mandriva.com>2001-06-20 15:10:11 +0000
commit9ea4cc9bae64e1f3b734aaf0ef679f26fb85ce80 (patch)
tree7faf38ba12a894d92c3f1891fbdda3f01babc85c /Makefile
parent1fcd62b3d7bb3683e78d937ac0d6fbd04da8d06c (diff)
downloadurpmi-9ea4cc9bae64e1f3b734aaf0ef679f26fb85ce80.tar
urpmi-9ea4cc9bae64e1f3b734aaf0ef679f26fb85ce80.tar.gz
urpmi-9ea4cc9bae64e1f3b734aaf0ef679f26fb85ce80.tar.bz2
urpmi-9ea4cc9bae64e1f3b734aaf0ef679f26fb85ce80.tar.xz
urpmi-9ea4cc9bae64e1f3b734aaf0ef679f26fb85ce80.zip
allow build on both 4.0 or 4.0.3+ rpm.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f0e8342a..ed789389 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ URPMIDIR = $(PREFIX)/var/lib/urpmi
URPMIDIR2 = $(PREFIX)/etc/urpmi
LOCALEDIR = $(PREFIX)/usr/share/locale
CFLAGS = -Wall -g
-LIBRPM = -lrpm -lrpmio -lrpmdb -lz -lbz2 -I/usr/include/rpm -lpopt
+LIBRPM = -lrpm -lrpmio `perl -e 'use rpmtools; rpmtools::version_compare(qx(rpm -q --qf %{VERSION} rpm), "4.0.3") >= 0 and print "-lrpmdb"'` -lz -lbz2 -I/usr/include/rpm -lpopt
NAME = urpmi
TAR = $(NAME).tar.bz2