Hi, While compiling clamav 0.86 and 0.86.1 on OpenBSD (3.3-3.7) using a configure option of --disable-cr , the build failed with a linker error on -lc_r (ld: -lc_r: no match). This is not surprising due to OBSD's implementation of pthreads. However, disabling linking with the reentrant c lib had no effect on the config. A quick look at the Makefile(s) indicated that CLAMD_LIBS was set to -pthread -lc_r not just -pthread. After a quick search of the configure script, I realized there has been a change regarding this option. Builds prior to 0.86 hard set disable_cr="yes" However, on 0.86+ disable_cr=$enablevar. A check of the value of $enablevar showed that it is set to "no." Of course when this value is checked further down (~11,824), it sets CLAMD_LIBS to -pthread -lc_r The fix was straight forward but I was wondering what the reason for the change was?
Thanks, Mike _______________________________________________ http://lurker.clamav.net/list/clamav-users.html
