Skip to content

Commit

Permalink
Use configure ARG_MAX hack by default.
Browse files Browse the repository at this point in the history
Details:
- Use --enable-max-arg-list-hack in configure by default. Thanks to
  M. Zhou,  Stefano Ferraro, and others for reporting that the need for
  this option is becoming increasingly commonplace.
  • Loading branch information
fgvanzee committed May 19, 2020
1 parent a4bbb6e commit b112dd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build/ac-macros/fla_check_enable_max_arg_list_hack.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AC_DEFUN([FLA_CHECK_ENABLE_MAX_ARG_LIST_HACK],
dnl --disable-<option>. If so, then run the first snippet of code;
dnl otherwise, run the second code block.
AC_ARG_ENABLE([max-arg-list-hack],
AC_HELP_STRING([--enable-max-arg-list-hack],[Enable makefile code that archives object files from a flat object directory, thus decreasing the potential length of the argument list to ar. Use this option if you get 'Argument list too long' error messages when make tries to archive the library. (Disabled by default.)]),
AC_HELP_STRING([--enable-max-arg-list-hack],[Enable makefile code that archives object files from a flat object directory, thus decreasing the potential length of the argument list to ar. Use this option if you get 'Argument list too long' error messages when make tries to archive the library. (Enabled by default.)]),
[
dnl If any form of the option is given, handle each case.
if test "$enableval" = "no" ; then
Expand All @@ -29,8 +29,8 @@ AC_DEFUN([FLA_CHECK_ENABLE_MAX_ARG_LIST_HACK],
],
[
dnl User did not specify whether to enable or disable the option.
dnl Default behavior is to disable the option.
fla_enable_max_arg_list_hack=no
dnl Default behavior is to enable the option.
fla_enable_max_arg_list_hack=yes
]
)
Expand Down
6 changes: 3 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ Optional Features:
potential length of the argument list to ar. Use
this option if you get 'Argument list too long'
error messages when make tries to archive the
library. (Disabled by default.)
library. (Enabled by default.)
--enable-non-critical-code
Enable code that provides non-critical
functionality. This code has been identified as
Expand Down Expand Up @@ -6014,7 +6014,7 @@ if test "${enable_max_arg_list_hack+set}" = set; then :

else

fla_enable_max_arg_list_hack=no
fla_enable_max_arg_list_hack=yes


fi
Expand Down Expand Up @@ -6508,7 +6508,7 @@ $as_echo_n "checking for (guessing) OpenMP flags for ${CC_VENDOR}... " >&6; }

case ${CC_VENDOR} in
icc)
fla_c_openmp_flags='-qopenmp'
fla_c_openmp_flags='-openmp'
;;
gcc)
fla_c_openmp_flags='-fopenmp'
Expand Down

0 comments on commit b112dd8

Please sign in to comment.