#2114: gcc -print-search-dirs gives directories outside /tools directory ----------------------+----------------------------------------------------- Reporter: mfonseca | Owner: [email protected] Type: defect | Status: new Priority: normal | Milestone: Component: Book | Version: 6.3 Severity: normal | Keywords: ----------------------+----------------------------------------------------- While creating a x86 toolchain using lfs as a guideline, I noticed that a "gcc -print-search-dirs" on my temporary toolchain printed out some undesirable results. It contained references to /usr/... and others that I had assumed was handled by the gcc 4.1.2 spec patch.
I dug in a little and found that gcc/gcc.c still had explicit hardcoded values for standard_exec_prefix_1 and standard_exec_prefix_2. Additionally STANDARD_STARTFILE_PREFIX_1 and STANDARD_STARTFILE_PREFIX_2 were also hardcoded although these were predicated on some conditional. I found changing these references to "" removed the references to outside the /tool directory. -- Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2114> LFS Trac <http://wiki.linuxfromscratch.org/lfs/> Linux From Scratch: Your Distro, Your Rules. -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
