wutingcindy / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

The make generator does not add rpaths for executables depending only on shared objects with non-.so exentensions #329

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Create a target like this:
     {
      'target_name': 'shared_no_so_suffix',
      'product_extension': 'so.0.1',
      'type': 'shared_library',
      'sources': [ 'file.c' ],
    },

2. Create an executable depending on that target:
     {
      'target_name': 'shared_executable_no_so_suffix',
      'type': 'executable',
      'sources': [ 'main.c' ],
      'dependencies': [
        'shared_no_so_suffix',
      ]
    },

What is the expected output? What do you see instead?
The executable should have an rpath embedded. Instead there is no rpath. It is 
quite common for a shared-object to be suffixed with .so.0.1 on Linux.

Original issue reported on code.google.com by martin.j...@gmail.com on 28 Mar 2013 at 1:59