Message15794
Logged In: YES
user_id=30074
Martin writes:
> When you say "update", do you mean that the code was correct
The old code was correct because the xlC code was not
in the main include directory but rather in the /usr/lpp/xlC
directory.
IBM apparently moved the file around during various releases
of AIX though it settled a few versions ago in /usr/include.
Perhaps the proper tactic is to look in the various directories
like the perl configuration does:
% more ./ext/DynaLoader/hints/aix.pl
# See dl_aix.xs for details.
use Config;
if ($Config{libs} =~ /-lC/ && -f '/lib/libC.a') {
$self->{CCFLAGS} = $Config{ccflags} . ' -DUSE_libC';
if (-f '/usr/vacpp/include/load.h') {
$self->{CCFLAGS} .= ' -DUSE_vacpp_load_h';
} elsif (-f '/usr/ibmcxx/include/load.h') {
$self->{CCFLAGS} .= ' -DUSE_ibmcxx_load_h';
} elsif (-f '/usr/lpp/xlC/include/load.h') {
$self->{CCFLAGS} .= ' -DUSE_xlC_load_h';
} elsif (-f '/usr/include/load.h') {
$self->{CCFLAGS} .= ' -DUSE_load_h';
}
}
|
|
Date |
User |
Action |
Args |
2007-08-23 14:12:59 | admin | link | issue730467 messages |
2007-08-23 14:12:59 | admin | create | |
|