aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-23 09:04:34 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-23 09:04:34 +0000
commite255d16474dcdf32385492ce65d7b3be1ec9c277 (patch)
treefef8eba36d4c578614cc6ebdca5a19655d194582
parent49196e2be932da9062118075b22520f214c23306 (diff)
downloadrpmtools-e255d16474dcdf32385492ce65d7b3be1ec9c277.tar
rpmtools-e255d16474dcdf32385492ce65d7b3be1ec9c277.tar.gz
rpmtools-e255d16474dcdf32385492ce65d7b3be1ec9c277.tar.bz2
rpmtools-e255d16474dcdf32385492ce65d7b3be1ec9c277.tar.xz
rpmtools-e255d16474dcdf32385492ce65d7b3be1ec9c277.zip
Fix CFLAGS in the Makefile for compilation with versions of rpm >= 4.2.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 188d6f4..f4797b3 100644
--- a/Makefile
+++ b/Makefile
@@ -7,13 +7,13 @@ FROMC_STATIC = $(FROMC:%=%_static)
FROMCC_STATIC = $(FROMCC:%=%_static)
ALL = $(FROMC) $(FROMCC)
ALL_STATIC = $(FROMC_STATIC) $(FROMCC_STATIC)
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g `perl -e 'qx(rpm -q --qf %{VERSION} rpm)=~/^(?:4\.[2-9]|[5-9]|\d{2})/&&print -DRPM_42'`
LIBRPM = -lrpm -lrpmio `perl -e 'local $$_ = qx(rpm -q --qf %{VERSION} rpm); /^4\.0\s*$$/ or print "-lrpmdb"'` -lz -lbz2 -I/usr/include/rpm -lpopt
LIBRPM_STATIC =
RPM = `rpm --eval %_topdir`
all: $(ALL)
- echo $(INSTALLVENDORLIB)
+ @echo $(INSTALLVENDORLIB)
install: $(ALL)
install -d $(PREFIX)/usr/bin