diff --git a/pythonforandroid/recipes/hostpython2/__init__.py b/pythonforandroid/recipes/hostpython2/__init__.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/recipes/hostpython2/__init__.py
+++ b/pythonforandroid/recipes/hostpython2/__init__.py
@@ -2,6 +2,7 @@
 from pythonforandroid.toolchain import Recipe, shprint, current_directory, info, warning
 from os.path import join, exists
 from os import chdir
+import os
 import sh
 
 
@@ -36,6 +37,8 @@ class Hostpython2Recipe(Recipe):
                                            'hostpgen')
                 return
             
+            if 'LIBS' in os.environ:
+                os.environ.pop('LIBS')
             configure = sh.Command('./configure')
 
             shprint(configure)
- remove LIBS from environment to prevent user setting breaking linking