[sr-dev] git:sr_3.0: makefile: fix assembler detection on solaris

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Dec 2 22:19:09 CET 2009


Module: sip-router
Branch: sr_3.0
Commit: 0f7ec046ce88202e508ced7c1b1d544f05529758
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0f7ec046ce88202e508ced7c1b1d544f05529758

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Wed Dec  2 20:07:13 2009 -0500

makefile: fix assembler detection on solaris

Assembler test waited forever for input (missing /dev/null input
redirection for as -V).

---

 Makefile.defs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile.defs b/Makefile.defs
index 0684e21..7f4dd97 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -671,7 +671,8 @@ ifeq ($(CC_NAME), gcc)
 						fi)
 		ASPATH:=$(shell  if [ -z "$(ASGCC)" ] ; then echo "as" ;\
 						else \
-						if $(ASGCC) -V 2>/dev/null 1>/dev/null; then \
+						if $(ASGCC) -V 2>/dev/null 1>/dev/null </dev/null; \
+						then \
 							echo $(ASGCC); \
 						else echo "as" ; \
 						fi\




More information about the sr-dev mailing list