Configure: remove unused variables.
[openssl.git] / Configurations / 10-main.conf
index 9d38554477b4b0afae2f2638c06a8a6882173fbf..7cd109c7904a1a344027c03a223ac0c30af19808 100644 (file)
         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",