diff --git a/Makefile b/Makefile
index 59151eb26e130816777f721a6de9725f2612eea2..c0e86f9520f2814723a9401b4e9ec5df3ff51ec1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.254 2003-02-11 08:54:55 geuzaine Exp $
+# $Id: Makefile,v 1.255 2003-02-11 09:18:48 geuzaine Exp $
 
 include variables
 
@@ -22,6 +22,7 @@ compile: variables initialtag
 
 link: variables
 	${LINKER} -o bin/gmsh ${GMSH_LIBS}
+	${POSTBUILD}
 
 install: variables
 	-mkdir -p ${bindir}
diff --git a/Parser/OpenFile.cpp b/Parser/OpenFile.cpp
index a0930d8b21578b3bae42447484c2264327d54ae4..007151c1b4aaac0c44588783fae1fdbed6da7bbf 100644
--- a/Parser/OpenFile.cpp
+++ b/Parser/OpenFile.cpp
@@ -1,4 +1,4 @@
-// $Id: OpenFile.cpp,v 1.36 2003-01-25 22:33:38 geuzaine Exp $
+// $Id: OpenFile.cpp,v 1.37 2003-02-11 09:18:48 geuzaine Exp $
 //
 // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
 //
@@ -209,7 +209,7 @@ void decygwin(char *in, char *out){
 }
 
 void SystemCall(char *command){
-#if defined(WIN32)
+#if defined(WIN32) && !defined(_BLACKBOX)
   STARTUPINFO		suInfo;	// Process startup information
   PROCESS_INFORMATION	prInfo;	// Process information
   
diff --git a/variables.in b/variables.in
index 35af0cf9eb29b1bfab5835252c0faeababf48002..5da578b62e3f52e8a1df7a9a0ff2fc4d801808f0 100644
--- a/variables.in
+++ b/variables.in
@@ -27,6 +27,9 @@ RANLIB=@RANLIB@
 # The extension to use for executables...
 EXEEXT=@EXEEXT@
 
+# Any operation to perform on the executable after the link
+POSTBUILD=@POSTBUILD@
+
 # Installation directories
 prefix=@prefix@
 exec_prefix=@exec_prefix@