diff options
author | Bryce Harrington <bryce@bryceharrington.org> | 2016-10-10 14:05:32 -0700 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-10-12 13:17:05 -0700 |
commit | cd1040ed80b6ab886c019248544bede747cd3eb4 (patch) | |
tree | 8d1dea99f8449545b4be728cba896d147b12165b | |
parent | b7b6803567fbe477e1ae42d2406744afaa3c0cbb (diff) |
build: Don't rely on non-POSIX 'strings -' behavior
On systems using GNU's strings implementation, 'strings -' causes a scan
of the whole file, which is equivalent to 'strings -a'. However, in
POSIX passing '-' as the first argument to 'strings' is declared
unspecified, and thus may break the build on systems that use a
different POSIX strings implementation.
Patch from Jung-uk Kim
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=88639
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
-rw-r--r-- | build/aclocal.float.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/aclocal.float.m4 b/build/aclocal.float.m4 index 8f85f0862..ca14ea377 100644 --- a/build/aclocal.float.m4 +++ b/build/aclocal.float.m4 @@ -31,10 +31,10 @@ int main() { return 0; } ]])], [ -if strings - conftest$ac_exeext | grep noonsees >/dev/null ; then +if strings -a conftest$ac_exeext | grep noonsees >/dev/null ; then ax_cv_c_float_words_bigendian=yes fi -if strings - conftest$ac_exeext | grep seesnoon >/dev/null ; then +if strings -a conftest$ac_exeext | grep seesnoon >/dev/null ; then if test "$ax_cv_c_float_words_bigendian" = unknown; then ax_cv_c_float_words_bigendian=no else |