This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix build under -DPERL_GLOBAL_STRUCT
[perl5.git] / hints / bsdos.sh
index 1d1d823..53a5cd2 100644 (file)
@@ -21,8 +21,13 @@ d_voidsig='define'
 
 usemymalloc='n'
 
+# malloc wrap works
+case "$usemallocwrap" in
+'') usemallocwrap='define' ;;
+esac
+
 # setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS versions.
-# See <A HREF="http://www.bsdi.com/bsdi-man?setuid">http://www.bsdi.com/bsdi-man?setuid</A>(2)
+# See man 2 setuid
 d_setregid='undef'
 d_setreuid='undef'
 d_setrgid='undef'
@@ -98,7 +103,6 @@ case "$osvers" in
        case "$cc" in
        '')     cc='cc'                 # cc is gcc2 in 4.0
                cccdlflags="-fPIC"
-               ccdlflags="-rdynamic -Wl,-rpath,$privlib/$archname/CORE"
                ;;
        esac
 
@@ -116,12 +120,12 @@ cat > UU/usethreads.cbu <<'EOCBU'
 case "$usethreads" in
 $define|true|[yY]*)
        case "$osvers" in 
-       3.*|4.*)        ccflags="-D_REENTRANT $ccflags" 
+       3.*|4.*)        ccflags="-D_REENTRANT -D_THREAD_SAFE -pthread $ccflags"
            ;;
        *)   cat <<EOM >&4
 I did not know that BSD/OS $osvers supports POSIX threads.
 
-Feel free to tell perlbug@perl.com otherwise.
+Feel free to tell perlbug@perl.org otherwise.
 EOM
            exit 1
            ;;