Yet another tweak on AIX dynaloading.
Jarkko Hietaniemi [Wed, 28 Mar 2001 16:12:45 +0000 (16:12 +0000)]
p4raw-id: //depot/perl@9409

ext/DynaLoader/dl_aix.xs
ext/DynaLoader/hints/aix.pl

index 1f51961..e29c0f8 100644 (file)
@@ -72,7 +72,7 @@
 #       include "/usr/ibmcxx/include/load.h"
 #   elif defined(USE_xlC_load_h)
 #       include "/usr/lpp/xlC/include/load.h"
-#   else
+#   elif defined(USE_load_h)
 #       include "/usr/include/load.h"
 #   endif
 #else
index b80ba65..d4231cc 100644 (file)
@@ -8,7 +8,7 @@ if ($Config{libs} =~ /-lC/ && -f '/lib/libC.a') {
        $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} = $Config{ccflags}; # Remove again, no <load.h>
+    } elsif (-f '/usr/include/load.h') {
+       $self->{CCFLAGS} .= ' -DUSE_load_h';
     }
 }