[cfe-commits] [PATCH] Extend support of '-Bprefix' functionality

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Oct 25 20:35:54 PDT 2012


Instead of creating files at runtime like

// RUN: touch %t.dir/dir1/i386-unknown-linux-ld
+// RUN: chmod u+x %t.dir/dir1/i386-unknown-linux-ld
+// RUN: touch %t.dir/dir1/ld
+// RUN: chmod u+x %t.dir/dir1/ld
+// RUN: touch %t.dir/dir2/ld
+// RUN: chmod u+x %t.dir/dir2/ld
+// RUN: touch %t.dir/dir3/prefix-ld

it is probably better to check them in as the other driver tests do.

Is this a new feature in gcc? I am trying gcc 4.6 from fedora. I have
gold in ~/inst/binutils/bin/ld. I created a foobar-ld link to ld and
tried

$ gcc -B/home/espindola/inst/binutils/bin/foobar- -shared test.o -o
test.so -Wl,-debug

but it is still using

/home/espindola/inst/binutils/bin/ld

instead of

/home/espindola/inst/binutils/bin/foobar-ld

Cheers,
Rafael



More information about the cfe-commits mailing list