Fix portability bug w.r.t. Microsoft's csc compiler.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Dec 2005 13:40:07 +0000 (13:40 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Dec 2005 13:40:07 +0000 (13:40 +0000)
lib/ChangeLog
lib/csharpcomp.c
lib/csharpcomp.sh.in

index 2602de844b2c31fae4e83365a2c28cf31a69c825..1a05242fc0cff9a7e8d57cba04ee6a723e0f9eb1 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-09  Bruno Haible  <bruno@clisp.org>
+
+       * csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
+       * csharpcomp.c (compile_csharp_using_sscli): Likewise.
+       Reported by Mark Junker <mjscod@gmx.de>.
+
 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
 
        * stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
index 7ce6bcba773de0203419bceaba59994bce1ca90b..2344a996224c40fcaf0b97b20cb9924992bafd2e 100644 (file)
@@ -404,9 +404,10 @@ compile_csharp_using_sscli (const char * const *sources,
        }
       for (i = 0; i < libraries_count; i++)
        {
-         char *option = (char *) xallocsa (11 + strlen (libraries[i]) + 1);
+         char *option = (char *) xallocsa (11 + strlen (libraries[i]) + 4 + 1);
          memcpy (option, "-reference:", 11);
-         strcpy (option + 11, libraries[i]);
+         memcpy (option + 11, libraries[i], strlen (libraries[i]));
+         strcpy (option + 11 + strlen (libraries[i]), ".dll");
          *argp++ = option;
        }
       if (optimize)
index f6a99ad337a055566dfe5296196fdada831f9112..da0d1ba2de1ef09d0885284c0d988b3254ab44ba 100644 (file)
@@ -97,7 +97,7 @@ while test $# != 0; do
     -l)
       options_cscc="$options_cscc -l "`echo "$2" | sed -e "$sed_quote_subst"`
       options_mcs="$options_mcs -r "`echo "$2" | sed -e "$sed_quote_subst"`
-      options_csc="$options_csc -reference:"`echo "$2" | sed -e "$sed_quote_subst"`
+      options_csc="$options_csc -reference:"`echo "$2" | sed -e "$sed_quote_subst"`".dll"
       shift
       ;;
     -O)