[Mono-list] mcs script patch

Christophe VG mono@baselabs.org
13 Mar 2002 08:22:21 +0100


--=-H2Ue7tv5XDRvGBv/lpYh
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

While working on the RPMS I (and others) constantly ran into the
LD_LIBRARY_PATH/libmonowrapper "problem" when running mcs through the
mcs script. I've constructed a very small patch that takes care of the
export LD_LIBRARY_PATH stuff in a transparant way.

Maybe someone could verify and commit this to the CVS ?

Thanks,

C


--=-H2Ue7tv5XDRvGBv/lpYh
Content-Disposition: attachment; filename=file.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1

Index: Makefile.am
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /mono/mono/scripts/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- Makefile.am	15 Feb 2002 10:12:19 -0000	1.2
+++ Makefile.am	13 Mar 2002 07:09:48 -0000
@@ -4,6 +4,5 @@
=20
 CLEANFILES =3D mcs
=20
-mcs: mcs.in
-	sed -e 's^\@bindir\@^$(bindir)^g' < $(srcdir)/mcs.in > mcs.tmp \
-	&& mv mcs.tmp mcs=20
+mcs:
+	m4 -DBINDIR=3D$(bindir) -DLIBDIR=3D$(libdir) mcs.in > mcs
Index: mcs.in
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /mono/mono/scripts/mcs.in,v
retrieving revision 1.2
diff -u -r1.2 mcs.in
--- mcs.in	1 Mar 2002 11:52:13 -0000	1.2
+++ mcs.in	13 Mar 2002 07:09:48 -0000
@@ -1,2 +1,3 @@
 #!/bin/sh
-@bindir@/mono @bindir@/mcs.exe $*
\ No newline at end of file
+export LD_LIBRARY_PATH=3DLIBDIR
+BINDIR/mono BINDIR/mcs.exe $*

--=-H2Ue7tv5XDRvGBv/lpYh--