summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2018-02-28 10:12:25 +0300
committerAndrei Belov <defan@nginx.com>2018-02-28 10:12:25 +0300
commitb2fb20780ab9ffe260a82bae410e45d56c10aede (patch)
treea46a0c7d38bb737c11f937467c9a501b8c00fc79 /pkg/rpm/Makefile
parent6aa00fa8d08e3b937f707ce114c7095300118584 (diff)
downloadunit-b2fb20780ab9ffe260a82bae410e45d56c10aede.tar.gz
unit-b2fb20780ab9ffe260a82bae410e45d56c10aede.tar.bz2
Packages: added essential build dependencies.
Diffstat (limited to '')
-rw-r--r--pkg/rpm/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile
index 2078fe3b..881f0a76 100644
--- a/pkg/rpm/Makefile
+++ b/pkg/rpm/Makefile
@@ -8,13 +8,14 @@ DEFAULT_RELEASE := 1
VERSION ?= $(DEFAULT_VERSION)
RELEASE ?= $(DEFAULT_RELEASE)
-BUILD_DEPENDS_unit = libxml2 libxslt rpm-build rpmlint
+BUILD_DEPENDS_unit = gcc libxml2 libxslt rpm-build rpmlint
BUILD_DEPENDS = $(BUILD_DEPENDS_unit)
ifeq ($(shell rpm --eval "%{?rhel}"), 6)
OSVER = centos6
else ifeq ($(shell rpm --eval "%{?rhel}"), 7)
OSVER = centos7
+BUILD_DEPENDS += which
else ifeq ($(shell rpm --eval "%{?amzn}"), 1)
OSVER = amazonlinux1
BUILD_DEPENDS += system-rpm-config