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: unassig...@gcc.gnu.org
        ReportedBy: phant...@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

Reply via email to