Skip to content

Commit

Permalink
Merge pull request #699 from gerdr/gerdr/cygwin
Browse files Browse the repository at this point in the history
cleanup cygwin build
  • Loading branch information
leto committed Jan 19, 2012
2 parents 86d1c01 + d654278 commit b9da642
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ cachegrind.out.*
/libparrot.def
/libparrot.dll
/libparrot.dll.a
/cygparrot*.dll
/miniparrot
/myconfig
/ops2c
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.generated
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ blib/lib/libparrot.so [main]lib
blib/lib/libparrot.so.4.0.0 [main]lib
compilers/data_json/data_json.pbc [data_json]
config/gen/call_list/opengl.in []
cygparrot4_0_0.dll [main]bin
docs/ops/bit.pod [doc]
docs/ops/cmp.pod [doc]
docs/ops/core.pod [doc]
Expand Down Expand Up @@ -159,6 +160,7 @@ lib/Parrot/Config/Generated.pm [devel]lib
lib/Parrot/PMC.pm [devel]lib
lib/Parrot/Pmc2c/PCCMETHOD_BITS.pm [devel]lib
libparrot.dll [main]bin
libparrot.dll.a [main]lib
libparrot.lib [main]bin
runtime/parrot/dynext/bit_ops.bundle [library]
runtime/parrot/dynext/bit_ops.dll [library]
Expand Down
2 changes: 1 addition & 1 deletion config/gen/makefiles/root.in
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ INSTALLABLEWINXED = .@slash@installable_winxed$(EXE)
# Libraries
LIBPARROT_STATIC = @blib_dir@/@libparrot_static@
#IF(darwin):export DYLD_LIBRARY_PATH := @build_dir@/@blib_dir@:$(DYLD_LIBRARY_PATH)
#IF(win32 or msys):LIBPARROT_SHARED = @libparrot_shared@
#IF(win32 or msys or cygwin):LIBPARROT_SHARED = @libparrot_shared@
#ELSE:LIBPARROT_SHARED = @blib_dir@/@libparrot_shared@

# This line controls whether a static or shared library is built
Expand Down
9 changes: 4 additions & 5 deletions config/init/hints/cygwin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ sub runstep {

my $build_dir = $conf->data->get('build_dir');
$build_dir =~ s/ /\\ /g;
my $bindir = $conf->data->get('bindir');
$bindir =~ s/ /\\ /g;
my $libdir = $conf->data->get('libdir');
$libdir =~ s/ /\\ /g;
my $libparrot_shared = $conf->data->get('libparrot_shared');
# force cyg prefix
$libparrot_shared =~ s/^lib/cyg/g;
Expand Down Expand Up @@ -49,11 +49,10 @@ sub runstep {
sym_export => '__declspec(dllexport)',
sym_import => '__declspec(dllimport)',
libparrot_shared => $libparrot_shared,
blib_dir => '.',
libparrot_ldflags => '-L' . $build_dir . ' -lparrot',
inst_libparrot_ldflags => '-L' . $bindir . ' -lparrot',
inst_libparrot_ldflags => '-L' . $libdir . ' -lparrot',
libparrot_linkflags => '-L' . $build_dir . ' -lparrot',
inst_libparrot_linkflags => '-L' . $bindir . ' -lparrot',
inst_libparrot_linkflags => '-L' . $libdir . ' -lparrot',
);

# inet_aton needs to be defined on Cygwin.
Expand Down

0 comments on commit b9da642

Please sign in to comment.