From 8e94d8d72665dbffcbe265f322daeba91453fb03 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 11 Feb 2003 09:18:48 +0000
Subject: [PATCH] Forgot POSTBUILD; fix blackbox on cygwin

---
 Makefile            | 3 ++-
 Parser/OpenFile.cpp | 4 ++--
 variables.in        | 3 +++
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 59151eb26e..c0e86f9520 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 a0930d8b21..007151c1b4 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 35af0cf9eb..5da578b62e 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@
-- 
GitLab