This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

Gcc spec file question


Hi all

I'm using gcc 4.2.1 compiler.

ld --verbose | grep SEARCH
SEARCH_DIR("/tools/<target-triplet>/lib"); SEARCH_DIR("/tools/lib"); SEARCH_DIR("/tools/usr/lib");

cc --print-search-dirs
libraries: =/tools/lib/gcc/<target-triplet>/4.2.1/:/lib/:/usr/lib/

gcc -dumpspecs
*md_exec_prefix:
/tools/libexec/gcc/<target-triplet>/4.2.1/

*md_startfile_prefix:
/tools/lib/gcc/<target-triplet>/4.2.1/

*md_startfile_prefix_1:
/lib/

*startfile_prefix_spec:


/tools/usr/lib/ | grep crt
crt1.o
crti.o
crtn.o
gcrt1.o

crtbegin* and crtend* files are in /tools/lib/gcc/<target-triplet>/4.2.1/ .

Now on programs I compile I want to link only with /tools/lib/gcc/<target-triplet>/4.2.1/ and /tools/usr/lib/ only.

How could I achieve it with a gcc spec file change?

Best regards
Unga




      


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