]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Append suffix .dll to csc -reference argument.
authorBruno Haible <bruno@clisp.org>
Mon, 11 Jul 2005 10:38:06 +0000 (10:38 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:38 +0000 (12:12 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/csharpcomp.c
gettext-tools/lib/csharpcomp.sh.in

index 9e779a27f904aa73148f59c3a77b96f1128d3cbe..b72ed6395c9131558eabb71b44cb01eb03a28799 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-07-05  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (libgettextlib_la_LDFLAGS): Use LTNOUNDEF.
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)