This is the mail archive of the 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]

Add to default SEARCH_DIR paths (For a .o, not a .so)

When using ld 2.24 binary or (binutils-gdb.git), I am
getting this error when compiling using gcc 6.0.0 20150521 (git

/..//bin/ld: cannot find crtbeginS.o: No such file or directory

crtbeginS.o exists at
(installed from GCC git master)

Tried adding that directory to ldconfig, but it didn't pick up any
additional libraries.  (Thinking since it's a .o rather than .so)

Running ld --verbose | grep SEARCH_DIR shows:
SEARCH_DIR("/usr/local/lib64"); SEARCH_DIR("/lib64");
SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib");

The directory above where crtbeginS.o exists is not listed here.

How do I add it to show up as a default, so I don't have to give -L to
everything I ever build?

gcc -print-search-dirs | grep x86 does show the
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/6.0.0/ directory

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