diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-10-12 12:35:00 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-10-18 12:09:53 +0100 |
commit | e73fe9e162af7b875a54cd78ddbb6bf26d8b06c2 (patch) | |
tree | 2c794fd2f6d68421975ba522450d951a1223c838 /libgcc | |
parent | 92ef7822bfd4ea3393e0a1dd40b4abef9fce027f (diff) | |
download | gcc-e73fe9e162af7b875a54cd78ddbb6bf26d8b06c2.zip gcc-e73fe9e162af7b875a54cd78ddbb6bf26d8b06c2.tar.gz gcc-e73fe9e162af7b875a54cd78ddbb6bf26d8b06c2.tar.bz2 |
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.
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in index 1fe708a..6e2a0470 100644 --- a/libgcc/Makefile.in +++ b/libgcc/Makefile.in @@ -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) |