perlasm_scheme => "o32",
},
-#### *BSD [do see comment about ${BSDthreads} in Configure!]
+#### *BSD
"BSD-generic32" => {
+ # As for thread_cflag. Idea is to maintain "collective" set of
+ # flags, which would cover all BSD flavors. -pthread applies
+ # to them all, but is treated differently. OpenBSD expands is
+ # as -D_POSIX_THREAD -lc_r, which is sufficient. FreeBSD 4.x
+ # expands it as -lc_r, which has to be accompanied by explicit
+ # -D_THREAD_SAFE and sometimes -D_REENTRANT. FreeBSD 5.x
+ # expands it as -lc_r, which seems to be sufficient?
cc => "gcc",
cflags => "-Wall",
debug_cflags => "-O0 -g",
release_cflags => "-O3",
- thread_cflag => "${BSDthreads}",
+ thread_cflag => "-pthread -D_THREAD_SAFE -D_REENTRANT",
bn_ops => "BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL",
dso_scheme => "dlfcn",
shared_target => "bsd-gcc-shared",