little improvement of Cygwin-detection
[fw/sdcc] / sim / ucsim / configure
index 68da2387f5ba284e3ce4e2e7eddfd8a8d4a7c201..8c931d20cfd6f2ad393fc19c6a094c256d917b46 100755 (executable)
@@ -3706,7 +3706,7 @@ fi
 # If this is Cygwin neither use Position Independant Code
 # nor build .so
 # Quick + dirty by Bernhard
-if gcc -v 2>&1 | grep -i cygwin > /dev/null; then
+if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
     PICOPT=""
     SHAREDLIB="no"
 fi