]> git.saurik.com Git - wxWidgets.git/blobdiff - wx-config.in
fixed bug with redoing the command when there was nothing to redo
[wxWidgets.git] / wx-config.in
index da8ffd42adb93378efc679dc910af95020f4f3b9..d046f70d483cf1d4bd74e9eccba233dd70fe587d 100755 (executable)
@@ -36,8 +36,14 @@ cppflags()
     then
         includes=-I@includedir@
     fi
+
     includes="-I@libdir@/wx/include/@TOOLCHAIN_NAME@ $includes"
-    echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @WXCONFIG_INCLUDE@
+
+    if test $static_flag = yes ; then
+        echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @WXCONFIG_INCLUDE@
+    else
+        echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @TOOLCHAIN_DLL_DEFS@ @WXCONFIG_INCLUDE@
+    fi
 }
 
 if test $# -eq 0; then
@@ -94,7 +100,7 @@ while test $# -gt 0; do
       fi
 
       if test $static_flag = yes ; then
-          echo "-static $libs @LDFLAGS@ @WXCONFIG_LIBS@ @LIBS@ @DMALLOC_LIBS@"
+          echo "$libs @LDFLAGS@ @WXCONFIG_LIBS@ @LIBS@ @DMALLOC_LIBS@"
       else
           echo $libs @LDFLAGS@ @WXCONFIG_LIBS@ @DMALLOC_LIBS@
       fi