This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/45992] New: MULTIOSSUBDIR in Makefile for <target>/libgcc missing quotes on 'test'
- From: "phantall at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Oct 2010 20:36:19 +0000
- Subject: [Bug other/45992] New: MULTIOSSUBDIR in Makefile for <target>/libgcc missing quotes on 'test'
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45992
Summary: MULTIOSSUBDIR in Makefile for <target>/libgcc missing
quotes on 'test'
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: phantall@gmail.com
During a 'make clean' in this directory (eg, sparcv9-sun-solaris2.10/libgcc),
an error occurs:
/bin/bash: line 0: test: !=: unary operator expected
... where presumably the variable MULTIOSDIR is blank. Adding double-quotes
around this variable in the script fixes it, eg:
MULTIOSSUBDIR := $(shell if test $(MULTIOSDIR) != .; then echo /$(MULTIOSDIR);
fi)
... becomes:
MULTIOSSUBDIR := $(shell if test "$(MULTIOSDIR)" != .; then echo
/$(MULTIOSDIR); fi)
-Brian