This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The first cut at fixing Perl extensions written in C++ in AIX,
[perl5.git] / ext / DynaLoader / hints / aix.pl
1 # See dl_aix.xs for details.
2 use Config;
3 if ($Config{libs} =~ /-lC/ && -f '/lib/libC.a') {
4     $self->{CCFLAGS} = $Config{ccflags} . ' -DUSE_xlC';
5     if (-f '/usr/ibmcxx/include/load.h') {
6         $self->{CCFLAGS} .= ' -I/usr/ibmcxx/include';
7     } elsif (-f '/usr/lpp/xlC/include/load.h') {
8         $self->{CCFLAGS} .= ' -I/usr/lpp/xlC/include';
9     } else {
10         # Hoping that <load.h> will be found somehow.
11     }
12 }