This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/84257] Extremely slow compilation from gcc source code under macOS 10.13
- From: "191919 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Feb 2018 13:13:11 +0000
- Subject: [Bug bootstrap/84257] Extremely slow compilation from gcc source code under macOS 10.13
- Auto-submitted: auto-generated
- References: <bug-84257-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84257
--- Comment #3 from 191919 <191919 at gmail dot com> ---
In macOS 10.12.6 with SIP disabled, the value of DYLD_LIBRARY_PATH was modified
to the same as in macOS 10.13.3, but the compilation speed was not affected.
I guess this is a regression of macOS code to handle DYLD_LIBRARY_PATH in an
SIP-disabled environment.
Long since OS X El Capitan which introduced SIP (aka rootless),
DYLD_LIBRARY_PATH was practically screened and no one complained about it, I
think it is safe to say that the line #3 of the following code taken from
configure.ac of gcc is not necessary and can be removed.
1 | case "${host}" in
2 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
4 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
5 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6 | esac