More generic check for OpenBSD platform
[obnox/samba/samba-obnox.git] / wscript
diff --git a/wscript b/wscript
index a7432283c5d38a92b93ce273364539a84d0a0206..3509939a7ba0dfe024123b6da17845c0e391e6eb 100644 (file)
--- a/wscript
+++ b/wscript
@@ -140,7 +140,7 @@ def configure(conf):
     # allows us to find problems on our development hosts faster.
     # It also results in faster load time.
 
-    if sys.platform != "openbsd4":
+    if not sys.platform.startswith("openbsd"):
         conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True)
 
     if not conf.CHECK_NEED_LC("-lc not needed"):