4 BEGIN { push @INC, $ENV{SOURCEPATH}; }
17 do_static_find(@ARGV);
21 do_static_link(@ARGV);
28 my $cflags = $ENV{CXXFLAGS};
29 $cflags =~ s/ -pedantic// if nopedantic($file);
30 $cflags .= ' ' . getcompilerflags($file);
32 if ($file =~ m#(?:^|/)((?:m|cmd)_[^/. ]+)(?:\.cpp|/.*\.cpp)$#) {
33 $cflags .= ' -DMODNAME='.$1.'.so';
37 if ($out =~ /\.so$/) {
38 $flags = join ' ', $cflags, $ENV{PICLDFLAGS}, getlinkerflags($file);
40 $flags = "$cflags -c";
43 my $execstr = "$ENV{RUNCC} $flags -o $out $file";
44 print "$execstr\n" if $verbose;
50 for my $file (@ARGV) {
51 push @flags, getlinkerflags($file);
54 print F join ' ', @flags;
59 my $execstr = "$ENV{RUNCC} -o $out $ENV{CORELDFLAGS} $ENV{LDLIBS}";
65 $execstr .= ' '.$libs;
71 print "$execstr\n" if $verbose;