diff options
-rw-r--r-- | recipes/libstdc++.recipe | 1 | ||||
-rw-r--r-- | recipes/mingw.recipe | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/recipes/libstdc++.recipe b/recipes/libstdc++.recipe index e35d163..13103d8 100644 --- a/recipes/libstdc++.recipe +++ b/recipes/libstdc++.recipe @@ -9,6 +9,7 @@ class Recipe(recipe.Recipe): licenses = [License.LGPL] btype = BuildType.CUSTOM stype = SourceType.CUSTOM + platform_deps = {Platform.WINDOWS: ['mingw']} files_libs = ['libstdc++'] diff --git a/recipes/mingw.recipe b/recipes/mingw.recipe index 7a81d52..f30dc9d 100644 --- a/recipes/mingw.recipe +++ b/recipes/mingw.recipe @@ -10,7 +10,7 @@ class Recipe(recipe.Recipe): btype = BuildType.CUSTOM stype = SourceType.CUSTOM - files_libs = ['libwinpthread'] + files_libs = ['libwinpthread', 'libgcc_s_sjlj'] files_satic = [] files_headers = ['include/GL'] @@ -36,13 +36,19 @@ class Recipe(recipe.Recipe): if self.config.platform == Platform.WINDOWS: binmingw = 'bin' + libmingw = 'lib' else: binmingw = os.path.join(self.config.host, 'lib') + libmngw = binmingw # copy some dll's required at runtime for f in ['libwinpthread-1']: shutil.copy( os.path.join(self.config.toolchain_prefix, binmingw, f + '.dll'), os.path.join(self.config.prefix, 'bin', f + '.dll')) + for f in ['libgcc_s_sjlj-1']: + shutil.copy( + os.path.join(self.config.toolchain_prefix, libmingw, f + '.dll'), + os.path.join(self.config.prefix, 'bin', f + '.dll')) for f in self.files_headers: src = os.path.join(self.config.toolchain_prefix, self.config.host, f) |