summaryrefslogtreecommitdiff
path: root/ext/SDBM_File
diff options
context:
space:
mode:
Diffstat (limited to 'ext/SDBM_File')
-rw-r--r--ext/SDBM_File/Makefile.PL4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/SDBM_File/Makefile.PL b/ext/SDBM_File/Makefile.PL
index 05e08b5cbc..ba4214c2ab 100644
--- a/ext/SDBM_File/Makefile.PL
+++ b/ext/SDBM_File/Makefile.PL
@@ -6,8 +6,12 @@ use Config;
# config, all, clean, realclean and sdbm/Makefile
# which perform the corresponding actions in the subdirectory.
+# Work around: Darwin ppc64 bug ignores archive contents when building bundles
+
$define = ($^O eq 'MSWin32') ? '-DMSDOS' : '';
if ($^O eq 'MSWin32') { $myextlib = 'sdbm\\libsdbm$(LIB_EXT)'; }
+elsif ($^O eq 'darwin' && $Config{'ldflags'} =~/-arch ppc64/) {
+ $myextlib = '-all_load sdbm/libsdbm$(LIB_EXT)'; }
else { $myextlib = 'sdbm/libsdbm$(LIB_EXT)'; }
WriteMakefile(