diff options
-rw-r--r-- | www/w3m/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile index adfb61c24670..409fda58ad52 100644 --- a/www/w3m/Makefile +++ b/www/w3m/Makefile @@ -86,8 +86,12 @@ CONFIGURE_ARGS+= --enable-keymap=lynx CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ LIBS="${LIBS} ${PTHREAD_LIBS} -lc_r" .else +# Use -lpthread instead of ${PTHREAD_LIBS} to link libpthread +# and libc before libgc. +# This is necessary to avoid build error with boehm-gc with REDIRECT and +# THREADING options. CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ - LIBS="${LIBS} ${PTHREAD_LIBS} -lc" + LIBS="${LIBS} -lpthread -lc" .endif pre-everything:: |