Apache OpenOffice (AOO) Bugzilla – Issue 11000
OOO_STABLE_1_PORTS/X11+Aqua: improved link stage patch for dylib discovery
Last modified: 2007-02-05 03:32:35 UTC
Currently, to satisfy ld's requirement of locating libraries with both @executable_path:/lib and -llib, we simply add every dylib that exists in solver/641/unxmacxp.pro/lib to the link line of every dylib and every app. This makes for _very_ long link commands and can sometimes overrun the argument length limit of the system (because g++ is actually a script that passes arguments through to libtool which passes them on to ld). This patch find every dylib specified with the -l<libname> and every library that those -l<libname> libraries depend on, and add ONLY those libraries to the link line if they exist in solver/641/unxmacxp.pro/lib. It also supresses warnings about multiply defined symbols, which caused huge amounts of output during the link stage of the static data member libraries. Dan
Created attachment 4474 [details] cd SRC_ROOT/solenv, patch -p0 /path/to/patchfile Adds support for selective library addition to link line
Created attachment 4475 [details] put in solenv/unxmacxp/bin
Building with these two patches builds and links correctly. Please approve for commit to OOO_STABLE_1_PORTS. Dan
approved, as MacOSX specific
Committed to OOO_STABLE_1_PORTS. Marked merge_pending. Please merge to OOO_STABLE_1 and also to HEAD and 644 and whatever else. Can someone also take solenv/unxmacxp/bin/dylib-link-list out of the Attic? Thanks, Dan
Fixed in 103 GM and 1.1
Closing issue. Branch closed to further updates. James McKenzie