diff options
author | Collin Funk <collin.funk1@gmail.com> | 2024-06-13 17:53:55 -0700 |
---|---|---|
committer | YunQiang Su <syq@gcc.gnu.org> | 2024-06-19 18:45:55 +0800 |
commit | c6a9ab8c920f297c4efd289182aef9fbc73f5906 (patch) | |
tree | 4e03657ca8a8582d30d9858fed2116ac806379f4 /gcc | |
parent | a73744a4f81e669d8ae72ed3bf529e1602858c88 (diff) | |
download | gcc-c6a9ab8c920f297c4efd289182aef9fbc73f5906.zip gcc-c6a9ab8c920f297c4efd289182aef9fbc73f5906.tar.gz gcc-c6a9ab8c920f297c4efd289182aef9fbc73f5906.tar.bz2 |
build: Fix missing variable quotes
When dlopen and pthread_create are in libc the variable is
set to "none required", therefore running configure will show
the following errors:
./configure: line 8997: test: too many arguments
./configure: line 8999: test: too many arguments
./configure: line 9003: test: too many arguments
./configure: line 9005: test: =: unary operator expected
gcc/configure also has a similar problem on
gcc_cv_as_mips_explicit_relocs:
./gcc/configure: line 30242: test: =: unary operator expected
ChangeLog:
* configure.ac: Quote variable result of AC_SEARCH_LIBS.
* configure: Regenerate.
gcc/ChangeLog:
* configure.ac: Add missing quotation of variable
gcc_cv_as_mips_explicit_relocs.
* configure: Regenerate.
Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/configure | 2 | ||||
-rw-r--r-- | gcc/configure.ac | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure index 9dc0b65..b536af6 100755 --- a/gcc/configure +++ b/gcc/configure @@ -30239,7 +30239,7 @@ else fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs_pcrel" >&5 $as_echo "$gcc_cv_as_mips_explicit_relocs_pcrel" >&6; } -if test $gcc_cv_as_mips_explicit_relocs_pcrel = yes; then +if test "x$gcc_cv_as_mips_explicit_relocs_pcrel" = "xyes"; then $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_PCREL" >>confdefs.h diff --git a/gcc/configure.ac b/gcc/configure.ac index b2243e9..1501bf8 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -5317,7 +5317,7 @@ x: AC_MSG_CHECKING(assembler and linker for explicit JALR relocation) gcc_cv_as_ld_jalr_reloc=no - if test $gcc_cv_as_mips_explicit_relocs = yes; then + if test "x$gcc_cv_as_mips_explicit_relocs" = "xyes"; then if test $in_tree_ld = yes ; then if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \ && test $in_tree_ld_is_elf = yes; then |