diff options
-rwxr-xr-x | Configure | 3 | ||||
-rw-r--r-- | util.c | 2 | ||||
-rw-r--r-- | utils/perlcc.PL | 2 |
3 files changed, 6 insertions, 1 deletions
@@ -2358,6 +2358,9 @@ EOM qnx) osname=qnx osvers="$4" ;; + cygwin*) osname=cygwin + osvers="$3" + ;; $2) case "$osname" in *isc*) ;; *freebsd*) ;; @@ -1889,7 +1889,7 @@ Perl_my_setenv_init(char ***penviron) } void -Perl_my_setenv(char *nam, char *val) +Perl_my_setenv(pTHX_ char *nam, char *val) { /* You can not directly manipulate the environ[] array because * the routines do some additional work that syncs the Cygwin diff --git a/utils/perlcc.PL b/utils/perlcc.PL index 734b20a667..24eb0b30c3 100644 --- a/utils/perlcc.PL +++ b/utils/perlcc.PL @@ -376,6 +376,8 @@ sub _ccharness } my $libs = _getSharedObjects($sourceprog); + @$libs = grep { !(/DynaLoader\.a$/ && ($dynaloader = $_)) } @$libs + if($^O =~ /cygwin/i); my $ccflags = $Config{ccflags}; $ccflags .= ' -DUSEIMPORTLIB' if $Config{osname} =~ /cygwin/i; |