public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Usability of --with-specs option
@ 2022-12-11  9:52 Mahmoud, Abdulrahman (DI SW ICS MNA)
  2022-12-11 12:04 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Mahmoud, Abdulrahman (DI SW ICS MNA) @ 2022-12-11  9:52 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 827 bytes --]

Hi,

I am facing an issue in the GCC on ubuntu 20 as it can't find the crti.o and crtn.o during linking.
The GCC I am using is being built on Redhat6.5 so it searches for the missing files in /lib instead of /lib/x86_64-linux-gnu.

I was searching for a way to configure the GCC to include the /lib/x86_64-linux-gnu directory in the search dirs while building on Redhat6.5.
I found a configuration option called --with-specs so I was thinking I may add this line "%:if-exists-else(crti.o /lib/x86_64-linux-gnu/crti.o)" to the --with-specs to be added to Startfile spec name.

Is this possible with some sort of syntax and if it's not, is there any other way that I can add the /lib/x86_64-linux-gnu directory to the search dirs during the configuration?

I would really appreciate your help.

Thanks,
Abdulrahman

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-11 12:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-11  9:52 Usability of --with-specs option Mahmoud, Abdulrahman (DI SW ICS MNA)
2022-12-11 12:04 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).