This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch 4.5/4.6] search for liblto_plugin.so as a readable (not executable) file
- From: Matthias Klose <doko at ubuntu dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 18 Apr 2010 14:40:57 +0200
- Subject: [patch 4.5/4.6] search for liblto_plugin.so as a readable (not executable) file
The plugin is built and installed without the executable permission set, but the
driver searches the file with mode X_OK.
Ok for the trunk and the 4.5 branch?
Matthias
gcc/
2010-04-18 Matthias Klose <doko@ubuntu.com>
* gcc.c (main): Search for liblto_plugin.so with mode R_OK.
Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c (revision 158484)
+++ gcc/gcc.c (working copy)
@@ -7495,7 +7495,7 @@
fuse_linker_plugin + strlen (fuse_linker_plugin), 0))
{
linker_plugin_file_spec = find_a_file (&exec_prefixes,
- "liblto_plugin.so", X_OK,
+ "liblto_plugin.so", R_OK,
false);
if (!linker_plugin_file_spec)
fatal ("-fuse-linker-plugin, but liblto_plugin.so not found");