To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=112242 Issue #|112242 Summary|[solenv] setsolar environment on unxlngi6 incomplete: |use --sysroot Component|tools Version|DEV300m80 Platform|All URL| OS/Version|Linux Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|solenv Assigned to|hjs Reported by|mst
------- Additional comments from [email protected] Wed Jun 9 10:23:59 +0000 2010 ------- currently the setsolar environment on unxlngi6 uses GCC's -isystem flag to get it to use the baseline headers instead of the ones in /usr. > -isystem dir > Search dir for header files, after all directories specified by -I > but before the standard system directories. Mark it as a system > directory, so that it gets the same special treatment as is applied > to the standard system directories. GCC also has another flag with a similar purpose: > --sysroot=dir > Use dir as the logical root directory for headers and libraries. > For example, if the compiler would normally search for headers in > /usr/include and libraries in /usr/lib, it will instead search > dir/usr/include and dir/usr/lib. > > If you use both this option and the -isysroot option, then the > --sysroot option will apply to libraries, but the -isysroot option > will apply to header files. > > The GNU linker (beginning with version 2.16) has the necessary sup‐ > port for this option. If your linker does not support this option, > the header file aspect of --sysroot will still work, but the > library aspect will not. the difference seems to be that: 1. -isystem only works for headers, not libraries, but --sysroot does both 2. -isystem merely inserts the given directory before system directories, but --sysroot actually removes the system directories from the search path so with --sysroot an incomplete baseline should lead to a broken build (as it should be); the build will not erroneously succeed by building against whatever happens to be installed in /usr, as it does currently. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
