diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-08-07 13:43:44 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-08-08 12:54:46 +0200 |
commit | 6b65cd39a8f223ad233bcb3c029f58c53115dd9f (patch) | |
tree | 8ce5192fc00791143560a4ad69147c15220f8d27 /recipes | |
parent | b5e18d2e037e0f0c11d548b6d58fe9caafb60e7a (diff) |
mingw: add some libs required for static links
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/mingw.recipe | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes/mingw.recipe b/recipes/mingw.recipe index 43bee9bb..3b52d77f 100644 --- a/recipes/mingw.recipe +++ b/recipes/mingw.recipe @@ -10,6 +10,10 @@ class Recipe(recipe.Recipe): files_libs = ['libgcc_s_sjlj-1', 'libstdc++-6'] files_bins = ['Elevate'] + files_static = ['%(host)s/lib/libmingwex.a', + '%(host)s/lib/libdxerr9.a', + '%(host)s/lib/libmoldname.a', + '%(mingw)s/lib/gcc/%(host)s/4.6.2/libgcc.a'] files_headers = ['include/GL'] def install(self): @@ -37,3 +41,18 @@ class Recipe(recipe.Recipe): if os.path.exists(dest): shutil.rmtree(dest) shutil.copytree(src, dest) + + # static build deps + if self.config.platform == Platform.WINDOWS: + # the native compiler install libraries in 'lib' and + # not in the cross prefix + mingw = '.' + else: + mingw = self.config.host + files_static = [f % {'mingw':mingw, 'host':self.config.host} for f in self.files_static] + self.files_static = [] + for f in files_static: + out_file = os.path.join('lib', os.path.basename(f)) + self.files_static.append(out_file) + shutil.copy(os.path.join(self.config.toolchain_prefix, f), + os.path.join(self.config.prefix, out_file)) |