diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2022-04-27 15:37:58 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2022-04-28 15:14:45 -0700 |
commit | 907b31d7b92fd0eb98507dca6411d07da0fecb46 (patch) | |
tree | e381891e4833553e93c1d3c8204f221ba5d770ae | |
parent | 0eb237d99ccd0e89188446418358b56418ab7835 (diff) | |
download | ruby-907b31d7b92fd0eb98507dca6411d07da0fecb46.tar.gz |
Don't set LDFLAGS by default
This fixes a bug where Ruby on macOS running on ARM would try to look in
`/usr/local/lib` for things to link against, but the libraries in that
directory are from the x86 installation of Homebrew
[ruby-core:108424]
-rw-r--r-- | configure.ac | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 2222b8aa8e..0796b06943 100644 --- a/configure.ac +++ b/configure.ac @@ -1007,13 +1007,6 @@ AS_CASE(["$target_os"], ]) ac_cv_func_getcontext=no ac_cv_func_setcontext=no - incs=`$CC -v -E -xc - < /dev/null 2>&1 | sed ['1,/^@%:@include </d;s/^ *//;s|[^./][^/]*/\.\./||g;/\/include$/!d;s||/lib|;/\/usr\/lib/d']` - for d in `$CC -print-search-dirs | sed -e '/^libraries: */!d;s///' | tr : '\012' | fgrep -v /../ | sed -n 's|^\(/.*/lib\)/$|\1|p'`; do - incs=`echo "$incs" | fgrep -v "$d"` - done - for d in $incs; do - test -d "$d" && RUBY_APPEND_OPTIONS(LDFLAGS, "-L$d") - done ac_cv_type_getgroups=gid_t # getgroups() on Rosetta fills garbage ac_cv_lib_crypt_crypt=no ac_cv_func_fdatasync=no # Mac OS X wrongly reports it has fdatasync() |