This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
>-----Original Message----- >From: William A. Gatliff [mailto:bgat@saturn.billgatliff.com] >Sent: 11 October 2001 14:31 >> First, I configure and build binutils : >> configure --target=sparc-sun-solaris2.7 --prefix=/usr >> make all install > >This is probably ok, but I STRONGLY discourage your using /usr as your >prefix. It's all too easy to screw things up when working as the root >user. Instead, work as a normal user, and use a prefix that you have >permission to write to (a subdirectory of your home directory, for >example). Actually, isn't it probably-ok-but-highly-dangerous when you're recompiling your native compiler, but pretty much suicidal when making a cross compiler? It's either going to try and use the native libs and headers for the crosscompiler, or much more frighteningly, it may end up overwriting your native libc with the one for the cross compile; if you're on a dynamic linking system like linux, that could leave you in a oops-time-to-get-the-backups-and-bootdisks-out-and-reinstall situation. It might not be as bad as that owing to versioning and stuff that might mean you didn't overwrite your vital system library, but I'm starting to wonder if gcc's config file shouldn't forbid --prefix=/usr? That would make life more difficult for system builders I suppose who want to set up a native compiler in /usr for their install images. DaveK -- Burn your ID card! http://www.optional-identity.org.uk/ Help support the campaign, copy this into your .sig! ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |