From 3d590a378a4e0f45d56b0d00a5f687b9bab5b498 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Thu, 12 Dec 2013 15:09:22 -0600 Subject: [PATCH] Update create-windef.pl to account for sgen/boehm compiles. This commit licensed as MIT/X11. --- msvc/Makefile.am | 3 ++- msvc/create-windef.pl | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/msvc/Makefile.am b/msvc/Makefile.am index 4a3f3b44fdf..726cf8e00f1 100644 --- a/msvc/Makefile.am +++ b/msvc/Makefile.am @@ -12,4 +12,5 @@ EXTRA_DIST = \ winsetup.bat update-def: - perl create-windef.pl mono.def + perl create-windef.pl mono.def ../mono/mini/.libs/libmonoboehm-2.0.so mono-2.0.dll + perl create-windef.pl monosgen.def ../mono/mini/.libs/libmonosgen-2.0.so monosgen-2.0.dll diff --git a/msvc/create-windef.pl b/msvc/create-windef.pl index 785abad338d..0220c5b39a5 100755 --- a/msvc/create-windef.pl +++ b/msvc/create-windef.pl @@ -3,9 +3,11 @@ use strict; my $outfile = shift || usage (); +my $soname = shift || usage (); +my $dllname = shift || usage (); my @symbols = (); my %excludes = (); -my $cmd = "nm -D ../mono/mini/.libs/libmono-2.0.so"; +my $cmd = "nm -D $soname"; @excludes {qw( mono_class_setup_vtable_general_new mono_debugger_init mono_debugger_main @@ -25,14 +27,14 @@ push @symbols, "MonoFixupCorEE"; open (OUT, ">$outfile") || die "Cannot open '$outfile': $!\n"; print OUT "; file generated by create-windef.pl\n"; -print OUT "LIBRARY mono-2.0.dll\nEXPORTS\n"; +print OUT "LIBRARY $dllname\nEXPORTS\n"; print OUT join ("\n", @symbols); print OUT "\n"; close (OUT); sub usage { - print "Usage: create-windef.pl output_file\n"; + print "Usage: create-windef.pl output_file soname dllname\n"; exit (1); } -- 2.25.1