excuse my laziness (efficiency), but instead of rewriting everything I'll just paste my question I posted in IRC <DaveM> Hello <DaveM> I'm (still) having a problem getting gcc to find crt*.o files. <DaveM> I've been looking at gcc-3.3.1/gcc/gcc.c main.c in gdb and now I'm now sure how it would work --- velco is now known as velco[sleep] * curious is away: zzz <DaveM> standard_startfile_prefix_? are only called inside of the large if Statement starting on line 5983 for cross compiling <DaveM> so the only other standard_startfile_prefix is the one without a number <DaveM> if gcc_exec_prefix is null then the prefix additition at line 6035 doesn't get added. Since gcc_exec_prefix comes from the env. this would be normal --> dayers (~David@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) has joined #GCC <DaveM> this leaves only the if statement at line 6041 where the proper dirs. for binutils could possibly be set up <DaveM> however this doesn't get run on my system <DaveM> So I guess my question is <DaveM> How do I get gcc to use standard_startfile_prefix_2 for crt*.o files? <velco[sleep]> better ask on the mailing list <DaveM> ok Any explanation of what gcc expects would be very helpful. If this helps these are the variables I had gdb display at line 6063 6: gcc_exec_prefix = 0x0 5: startfile_prefix_spec = 0x2deb8 "" 4: cross_compile = 0x2df70 "1" 3: standard_startfile_prefix_2 = 0x186f4 "/usr/lib/" 2: standard_startfile_prefix_1 = 0x186f8 "/lib/" 1: standard_startfile_prefix = 0x186e8 "../../../" And this was how I build gcc (cd ${GCC_BUILD_NATIVE_PATH}; PATH=${TARGET_PATH}/bin:$$PATH CC=arm-linux-gcc ${GCC_PATH}/configure \ --target=${TARGET} --host=${TARGET} --build=${HOST_CPU}-pc-linux-gnu \ --prefix=/usr --enable-languages=c --disable-multilib \ --enable-target-optspace --with-gnu-ld --disable-nls \ --enable-threads --enable-shared --disable-__cxa_atexit; ) // TARGET = arm-linux, host_cpu=i386-linux David -- ~~~~~~~~~~~~~~~~~~~~~~~~ David Meggy Engineering Technical Solutions Inc. Unit #1 7157 Honeyman St Delta BC Canada, V4G 1E2 www.techsol.ca eMail: dmeggy@xxxxxxxxxx Tel: 604 946 TECH (8324) Fax: 604 946 6445 ~~~~~~~~~~~~~~~~~~~~~~~~