Commit 98b136f6 authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Pavel Emelyanov

make: simplify checking of installed libraries

Impact: use /dev/null as $(CC) output, drop temporary file.

Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent d13be2f8
...@@ -46,10 +46,8 @@ REQ-DEB-PKG-TEST-NAMES += libaio-dev ...@@ -46,10 +46,8 @@ REQ-DEB-PKG-TEST-NAMES += libaio-dev
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),mrproper) ifneq ($(MAKECMDGOALS),mrproper)
ifneq ($(shell sh -c \ ifneq ($(shell sh -c \
'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \ 'echo "int main(int argc, char *argv[]) { return 0; }" | \
echo "int main(int argc, char *argv[]) { return 0; }" | \ "$(CC)" -x c - $(LIBS) -o /dev/null > /dev/null 2>&1 && echo y'),y)
"$(CC)" -x c - $(LIBS) -o "$$TMP" > /dev/null 2>&1 && echo y; \
rm -f "$$TMP"'),y)
$(warning "Couldn't find some of the required libraries") $(warning "Couldn't find some of the required libraries")
$(warning "Make sure the following packages are installed") $(warning "Make sure the following packages are installed")
$(warning "RPM based distros: $(REQ-RPM-PKG-NAMES)") $(warning "RPM based distros: $(REQ-RPM-PKG-NAMES)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment