$NetBSD: patch-aa,v 1.1 2005/05/31 18:09:13 drochner Exp $

--- setupext.py.orig	2005-05-12 17:44:54.000000000 +0200
+++ setupext.py
@@ -87,10 +87,8 @@ def temp_copy(_from, _to):
     globals()["_cleanup_"+_to] = CleanUpFile(_to)
 
 def add_base_flags(module):
-    incdirs = [os.path.join(p, 'include') for p in basedir[sys.platform]
-               if os.path.exists(p)]
-    libdirs = [os.path.join(p, 'lib')     for p in basedir[sys.platform]
-               if os.path.exists(p)]
+    incdirs = os.path.join(os.environ['LOCALBASE'], 'include')
+    libdirs = os.path.join(os.environ['LOCALBASE'], 'lib')
     module.include_dirs.extend(incdirs)
     module.library_dirs.extend(libdirs)
 
