Commits

Anonymous committed 58fbed2

Merge with main tree

  • Participants
  • Parent commits 97d3119
  • Branches CMake-2-2
  • Tags CMake-2-2-1, CMake-2-2-2

Comments (0)

Files changed (1)

GCC_XML/KWSys/SharedForward.h.in

 
 /* Windows */
 #if defined(_WIN32)
-# undef KWSYS_SHARED_FORWARD_OPTION_LDD
+# if defined(__CYGWIN__)
+#  define KWSYS_SHARED_FORWARD_LDD "cygcheck"
+#  define KWSYS_SHARED_FORWARD_LDD_N 1
+# endif
 # define KWSYS_SHARED_FORWARD_LDPATH "PATH"
 #endif
 
       /* Look for the ldd command line option.  */
       if(argc > 1 && strcmp(argv[1], KWSYS_SHARED_FORWARD_OPTION_LDD) == 0)
         {
+# if defined(KWSYS_SHARED_FORWARD_LDD)
+        /* Use the named ldd-like executable and arguments.  */
         char* ldd_argv[] = {KWSYS_SHARED_FORWARD_LDD, 0, 0};
         ldd_argv[KWSYS_SHARED_FORWARD_LDD_N] = exe;
         kwsys_shared_forward_execvp(ldd_argv[0], ldd_argv);
         /* Report why execution failed.  */
         kwsys_shared_forward_print_failure(ldd_argv);
         return 1;
+# else
+        /* We have no ldd-like executable available on this platform.  */
+        fprintf(stderr, "No ldd-like tool is known to this executable.\n");
+        return 1;
+# endif
         }
 #endif