Clone in a terminal:
Commit 9c3bed5
Johan Mattsson - 2014-03-06T17:09:44+00:00
9c3bed5658270a78656ceeef4f116a664f1ef0d0johan.mattsson.m@gmail.com

Add so name to libbirdfont

Changed files (2)

Diff

diff --git a/scripts/bavala.py b/scripts/bavala.pyindex 1bc6c02..9785d38 100644--- a/scripts/bavala.py+++ b/scripts/bavala.py@@ -1,5 +1,5 @@ """-Copyright (C) 2012, 2013 Eduardo Naufel Schettino and Johan Mattsson+Copyright (C) 2012, 2013, 2014 Eduardo Naufel Schettino and Johan Mattsson  This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by@@ -85,6 +85,7 @@ class Vala(object):             self.so_link = join(build, src) + '.so'             self.so_link_name = src + '.so'             self.so_version = so_version+            self.so_name = 'lib' + library + '.so.' + so_version;      def gen_c(self, opts):         """translate code from vala to C and create .vapi"""@@ -147,8 +148,10 @@ class Vala(object):         """generate ".so" lib file"""         def compile_cmd(conf, libs):             obj_glob = join(self.build, self.src, '*.o')-            opts = ['-shared ' + obj_glob,-                    '-o ' + self.so ]+            opts = ['-shared ' +                    + '-Wl,-soname,' + self.so_name +			        + ' ' + obj_glob+                    + ' -o ' + self.so ]             flags = [conf[l].strip() for l in libs]             return cmd(config.CC, opts, flags) diff --git a/scripts/build.py b/scripts/build.pyindex 0a9c150..17c92e9 100644--- a/scripts/build.py+++ b/scripts/build.py@@ -1,6 +1,6 @@ #!/usr/bin/python """-Copyright (C) 2013 Johan Mattsson+Copyright (C) 2013, 2014 Johan Mattsson  This library is free software; you can redistribute it and/or modify  it under the terms of the GNU Lesser General Public License as @@ -65,6 +65,7 @@ def libbirdfont(prefix, cc, cflags, ldflags, valac, valaflags, library):  		run(cc + " " + ldflags + """ \ 			-shared \+			-Wl,-soname,""" + library + """ \ 			build/libbirdfont/*.o \ 			$(freetype-config --libs) \ 			$(pkg-config --libs """ + config.GEE + """) \

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112