This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: finding libraries from linker via $ORIGIN


> Is there a way to force gcc to use a different linker that I can control
> from a Makefile (such as via an environment variable). Or is my only
> option to make sure that the ld found via the PATH is gold and not the
> old linker?

The gcc mechanism is called "spec files".  Hints are shown by:
   $ gcc --verbose hello.c
   Using built-in specs.
   COLLECT_GCC=/usr/bin/gcc
   COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'

Consult the gcc documentation "info gcc" node "* Spec Files::"
Changing and debugging a spec file can be tedious.

-- 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]