> Yes, it means that irix is a special case and needs to add this option. So
> you have most of it solved. Now please take a look at
> perl_config_lddlflags in lib/Apache/Build.pm, it should probably go there
> (make a special case for IRIX). A patch would be gladly accepted.
It's ldopts() that needs the code.
Here is a patch. Tested on irix. Added option at correct place.
====================
--- Build.pm.orig Thu Jan 6 00:46:49 2005
+++ Build.pm Mon Jan 10 18:28:58 2005
@@ -442,6 +442,16 @@
$config->{ldflags} = $ldflags; #reset
+# Iff we are on Irix then we need to persuade the symbols in libperl.a
+# to not be HIDDEN once we load them into mod_perl.so. So we need to
+# add -exports immediately before -lperl.
+# This assumes we need this for all irix builds.
+#
+ if ($^O eq 'irix') {
+ warn "Failed to fix Irix symbol exporting\n" unless
+ ($ldopts =~ s/-lperl\b/-exports -lperl/);
+ }
+
$ldopts;
}