File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,13 @@ foreach my $tuple (@files) {
28
28
}
29
29
30
30
my $defines = ' -DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG -DPERL_EXT' ;
31
+ my %args ;
32
+ for my $arg (@ARGV ) {
33
+ $args {$1 } = $2 if $arg =~ / ^(\w +)=(.*)$ / ;
34
+ }
35
+ if ($args {LINKTYPE } eq " static" ) {
36
+ $defines .= ' -DPERL_EXT_RE_STATIC' ;
37
+ }
31
38
32
39
my @libs ;
33
40
if ($^O eq ' cygwin' && $Config {usequadmath }) {
Original file line number Diff line number Diff line change @@ -1559,12 +1559,12 @@ typedef enum {
1559
1559
* and this is not a DEBUGGING enabled build (identified by
1560
1560
* DEBUGGING_RE_ONLY being defined)
1561
1561
*/
1562
- #if ( defined(USE_DYNAMIC_LOADING ) && defined(DEBUGGING )) || \
1562
+ #if ( ! defined(PERL_EXT_RE_STATIC ) && defined(DEBUGGING )) || \
1563
1563
( defined(PERL_EXT_RE_BUILD ) && defined(DEBUGGING_RE_ONLY )) || \
1564
1564
(!defined(PERL_EXT_RE_BUILD ) && defined(DEBUGGING ))
1565
1565
#define PERL_RE_BUILD_DEBUG
1566
1566
#endif
1567
- #if ( defined( USE_DYNAMIC_LOADING ) || !defined(PERL_EXT_RE_BUILD ) )
1567
+ #if !defined(PERL_EXT_RE_STATIC )
1568
1568
#define PERL_RE_BUILD_AUX
1569
1569
#endif
1570
1570
You can’t perform that action at this time.
0 commit comments