mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-14 01:50:35 +08:00
libgcc: Quote variable in Makefile.in
If the xgcc executable has not been built (or has been removed by 'make clean') then the command to print the multilib dir fails, and so the MULTIOSDIR variable is empty. That then causes: /bin/sh: line 0: test: !=: unary operator expected We can avoid it by quoting the variable. libgcc/ChangeLog: * Makefile.in: Quote variable.
This commit is contained in:
parent
92ef7822bf
commit
e73fe9e162
@ -310,7 +310,7 @@ CRTSTUFF_T_CFLAGS =
|
||||
MULTIDIR := $(shell $(CC) $(CFLAGS) -print-multi-directory)
|
||||
MULTIOSDIR := $(shell $(CC) $(CFLAGS) -print-multi-os-directory)
|
||||
|
||||
MULTIOSSUBDIR := $(shell if test $(MULTIOSDIR) != .; then echo /$(MULTIOSDIR); fi)
|
||||
MULTIOSSUBDIR := $(shell if test "$(MULTIOSDIR)" != .; then echo /$(MULTIOSDIR); fi)
|
||||
inst_libdir = $(libsubdir)$(MULTISUBDIR)
|
||||
inst_slibdir = $(slibdir)$(MULTIOSSUBDIR)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user