summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic Dunlop <domo@computer.org>2006-02-20 13:46:00 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-02-20 20:03:37 +0000
commit4ad10cd17301f4dcbb1ffda3d12c2a32aaa98602 (patch)
treed9c168f1fc1c275e4e0d7f953183122372529fc3
parentc84c465283025c72dfa40558418521b8e42b7290 (diff)
downloadperl-4ad10cd17301f4dcbb1ffda3d12c2a32aaa98602.tar.gz
Make SDBM_File work with -Duse64bitall on Darwin (Mac OS X)
Message-Id: <B699DDDE-EC4E-495D-AFF5-3D7399332A24@mac.com> p4raw-id: //depot/perl@27250
-rw-r--r--ext/SDBM_File/Makefile.PL4
-rw-r--r--hints/darwin.sh4
2 files changed, 6 insertions, 2 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(
diff --git a/hints/darwin.sh b/hints/darwin.sh
index 3e1c6034f9..d2cfe20daa 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -219,8 +219,8 @@ EOM
*** Perl 64-bit addressing support is experimental for Mac OS X
*** 10.4 ("Tiger") and Darwin version 8. Expect a number of test
*** failures:
-*** ext/IO/io_* ext/IPC/sysV/t/* lib/Net/Ping/t/450_service
-*** Any test that uses sdbm
+*** ext/IPC/sysV/t/*
+*** ext/threads/shared/t/wait
EOM
for var in ccflags cppflags ld ldflags