[packages/rpm-specdump] - realy define rpm version constants
baggins
baggins at pld-linux.org
Mon Oct 19 01:08:22 CEST 2020
commit 6ac431140c911a01730cc2dd3ce484f0d507a17f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Oct 19 01:07:54 2020 +0200
- realy define rpm version constants
Makefile | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/Makefile b/Makefile
index 0dcbb6c..bcf63f1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
-CC := gcc
-CFLAGS := -Wall -Wno-unused-result $(RPMCFLAGS)
-LDFLAGS := $(RPMLDFLAGS)
-INCLUDES := `pkg-config --cflags rpm`
-LIBS := `pkg-config --libs rpm`
RPM_FORMAT_VERSION := `pkg-config --modversion rpm | cut -d . -f 1`
RPM_MAJOR_VERSION := `pkg-config --modversion rpm | cut -d . -f 1`
RPM_MINOR_VERSION := `pkg-config --modversion rpm | cut -d . -f 1`
+CC := gcc
+CFLAGS := -Wall -Wno-unused-result -DRPM_FORMAT_VERSION=$(RPM_FORMAT_VERSION) -DRPM_MAJOR_VERSION=$(RPM_MAJOR_VERSION) -DRPM_MINOR_VERSION=$(RPM_MINOR_VERSION) $(RPMCFLAGS)
+LDFLAGS := $(RPMLDFLAGS)
+INCLUDES := `pkg-config --cflags rpm`
+LIBS := `pkg-config --libs rpm`
rpm-specdump: rpm-specdump.o
$(CC) $(LDFLAGS) $< -o $@ $(LIBS)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-specdump.git/commitdiff/6ac431140c911a01730cc2dd3ce484f0d507a17f
More information about the pld-cvs-commit
mailing list