https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66848
--- Comment #28 from Jack Howarth <howarth.at.gcc at gmail dot com> --- (In reply to r...@cebitec.uni-bielefeld.de from comment #27) > > --- Comment #25 from Jack Howarth <howarth.at.gcc at gmail dot com> --- > [...] > > Did you remember to install the patched build before attempting to run the > > libjava test suite? System Integrity Protection on 10.11 will make any > > usage of > > No, I've never done that before and try to avoid it if at all possible > on any platform. > > > DYLD_LIBRARY_PATH by the test suite non-functional so any previously > > installed > > libraries will be used instead of those in the current build directory. > > I wasn't aware of that: what a pity this is an system-wide > all-or-nothing setting without any way to override it e.g. per session > with appropriate privilege: makes the system sort of useless for > combined development and desktop use ;-( > Iain suggested that the required changes for supporting SIP will be along the lines of... a) make all libs @rpath/xxx b) add @loader_path as an rpath to all libs with a local dep. c) add @executable_path/../lib; <path/to/current/install/dir/>../lib as rpaths to exes. > After disabling SIP, I get the same results as you do with your patch. > > Thanks. > Rainer