From: Steve Hay Date: Mon, 8 Oct 2007 10:17:41 +0000 (+0000) Subject: Do the same as #32061 for Win32, which also fixes a static linking X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9788a75a4d0043e8bce3f9aa0964e76e23ee2c3c;p=p5sagit%2Fp5-mst-13.2.git Do the same as #32061 for Win32, which also fixes a static linking build problem with Hash/Util/FieldHash p4raw-id: //depot/perl@32066 --- diff --git a/win32/FindExt.pm b/win32/FindExt.pm index b2386b1..4038017 100644 --- a/win32/FindExt.pm +++ b/win32/FindExt.pm @@ -103,13 +103,18 @@ sub find_ext } } -# Special case: Add in threads/shared since it is not picked up by the -# recursive find above (and adding in general recursive finding breaks -# SDBM_File/sdbm). A.D. 10/25/2001. +# Special case: Add in modules that nest beyond the first level. +# Currently threads/shared and Hash/Util/FieldHash, since they are +# not picked up by the recursive find above (and adding in general +# recursive finding breaks SDBM_File/sdbm). +# A.D. 20011025 (SDBM), ajgough 20071008 (FieldHash) if (!$_[0] && -d "threads/shared") { $ext{"threads/shared"} = 'dynamic'; } + if (!$_[0] && -d "Hash/Util/FieldHash") { + $ext{"Hash/Util/FieldHash"} = 'dynamic'; + } } 1; diff --git a/win32/Makefile b/win32/Makefile index cc572c3..f07a62b 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -798,8 +798,7 @@ SETARGV_OBJ = setargv$(o) # - Win32 extension contains overlapped symbols with win32.c (BUG!) # - MakeMaker isn't capable enough for SDBM_File (smaller bug) # - Encode (encoding search algorithm relies on shared library?) -# - Hash/Util (fails various tests when linked statically) -STATIC_EXT = * !Win32 !SDBM_File !Encode !Hash/Util +STATIC_EXT = * !Win32 !SDBM_File !Encode !ELSE # specify static extensions here, for example: #STATIC_EXT = Cwd Compress/Raw/Zlib diff --git a/win32/makefile.mk b/win32/makefile.mk index d4e67c4..2f99285 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -954,8 +954,7 @@ SETARGV_OBJ = setargv$(o) # - Win32 extension contains overlapped symbols with win32.c (BUG!) # - MakeMaker isn't capable enough for SDBM_File (smaller bug) # - Encode (encoding search algorithm relies on shared library?) -# - Hash/Util (fails various tests when linked statically) -STATIC_EXT = * !Win32 !SDBM_File !Encode !Hash/Util +STATIC_EXT = * !Win32 !SDBM_File !Encode .ELSE # specify static extensions here, for example: #STATIC_EXT = Cwd Compress/Raw/Zlib