diff -ur poslib-1.0/README poslib-1.0-fbsd/README --- poslib-1.0/README 2003-02-01 16:27:37.000000000 +0100 +++ poslib-1.0-fbsd/README 2003-08-02 15:45:22.000000000 +0200 @@ -14,6 +14,12 @@ --enable-ccmalloc Turn on ccmalloc memory profiler --enable-sqldns Compile SQL-based DNS sever +Poslib is by default built without compiler optimisations because they caused +random crashes on some platforms. On some platforms, including Linux, they +can be safely turned on, like this: + + ./configure --with-cxxflags="-funsigned-char -O3" + Sqldns does not currently work all that will and requires the dbconnect library, which can be found at http://dbconnect.sf.net. diff -ur poslib-1.0/configure poslib-1.0-fbsd/configure --- poslib-1.0/configure 2003-07-30 22:11:29.000000000 +0200 +++ poslib-1.0-fbsd/configure 2003-08-02 15:48:48.000000000 +0200 @@ -8343,7 +8343,7 @@ withval="$with_cxxflags" CXXFLAGS="$withval" else - CXXFLAGS="-O3 -Wall -funsigned-char -D_REENTRANT" + CXXFLAGS="-O0 -Wall -funsigned-char -D_REENTRANT" fi; @@ -9734,6 +9734,7 @@ if test "x$pthread_ok" = "xyes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 + THREAD_LIBS="-pthread" else echo "$as_me:$LINENO: result: no. Now we will try some libraries." >&5 echo "${ECHO_T}no. Now we will try some libraries." >&6 @@ -9793,7 +9794,7 @@ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 if test $ac_cv_lib_pthread_pthread_create = yes; then - THREAD_LIBS="-lpthread" + LDFLAGS="$LDFLAGS -lpthread"; THREAD_LIBS="-lpthread" else echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 @@ -9850,7 +9851,7 @@ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 if test $ac_cv_lib_c_r_pthread_create = yes; then - THREAD_LIBS="-lc_r" + LDFLAGS="$LDFLAGS -lc_r"; THREAD_LIBS="-lc_r" else { { echo "$as_me:$LINENO: error: *** Failed to find pthreads" >&5 echo "$as_me: error: *** Failed to find pthreads" >&2;}