~robert-ancell/bake/namespace-libbake

« back to all changes in this revision

Viewing changes to src/module-gcc.vala

  • Committer: Robert Ancell
  • Date: 2014-01-11 09:30:26 UTC
  • Revision ID: robert.ancell@canonical.com-20140111093026-uqlyh2mwlw0hfozg
Set soname when linking libraries

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
        link_rule.add_output (binary_name);
180
180
        var link_command = "@%s -o %s".printf (compiler, binary_name);
181
181
        if (compilable is Library)
182
 
            link_command += " -shared";
 
182
            link_command += " -shared -Wl,-soname,%s".printf (binary_name);
183
183
        recipe.build_rule.add_input (binary_name);
184
184
 
185
185
        var archive_name = "lib%s.a".printf (compilable.name);