diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-23 09:04:34 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-23 09:04:34 +0000 |
commit | e255d16474dcdf32385492ce65d7b3be1ec9c277 (patch) | |
tree | fef8eba36d4c578614cc6ebdca5a19655d194582 | |
parent | 49196e2be932da9062118075b22520f214c23306 (diff) | |
download | rpmtools-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |