diff options
author | Sam James <sam@gentoo.org> | 2022-04-03 03:31:38 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-06 01:20:42 +0100 |
commit | d8858f94a944cb723ca897baac747a01643738e7 (patch) | |
tree | 0e5d4e97de3e2d59abb933f8fa906900cd0a49f3 | |
parent | 01603e2b71eb93770137daf6ed93b54741ce14dc (diff) | |
download | open-iscsi-d8858f94a944cb723ca897baac747a01643738e7.tar.gz |
Makefiles: don't hardcode sed, pkg-config
- On my system, sed appears to be at /bin/sed. So, let's allow overriding
the location.
- Allow different pkg-config paths too (useful for cross).
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | libopeniscsiusr/Makefile | 4 | ||||
-rw-r--r-- | usr/Makefile | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile index 62ef191..dc3959e 100644 --- a/libopeniscsiusr/Makefile +++ b/libopeniscsiusr/Makefile @@ -27,8 +27,8 @@ endif INCLUDE_DIR ?= $(prefix)/include PKGCONF_DIR ?= $(LIB_DIR)/pkgconfig -PKG_CONFIG = /usr/bin/pkg-config -SED = /usr/bin/sed +PKG_CONFIG ?= /usr/bin/pkg-config +SED ?= /usr/bin/sed LIBISCSI_USR_DIR=$(TOPDIR)/libopeniscsiusr diff --git a/usr/Makefile b/usr/Makefile index 3d52d49..87c7f00 100644 --- a/usr/Makefile +++ b/usr/Makefile @@ -41,7 +41,7 @@ endif DBROOT ?= $(etcdir)/iscsi HOMEDIR ?= $(etcdir)/iscsi -PKG_CONFIG = /usr/bin/pkg-config +PKG_CONFIG ?= /usr/bin/pkg-config CFLAGS ?= -O2 -g WARNFLAGS ?= -Wall -Wextra -Werror -Wstrict-prototypes -fno-common |