$NetBSD: patch-ag,v 1.5 2014/08/18 18:19:29 schmonz Exp $ --- src/Makefile.orig 2008-12-08 09:15:14.000000000 +0000 +++ src/Makefile @@ -173,7 +173,7 @@ ifeq "$(OS)" "BeOS" else ifeq "$(SSL)" "openssl" LDFLAGS+=-L ../modules/lib $(addprefix -l,$(LIBSTOLINK))\ - -ldl -lm -lpthread -lcrypto -rdynamic \ + -lm ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} -lcrypto \ $(CURL_LD_FLAGS) $(EXPAT_LD_FLAGS) else LDFLAGS+=-L ../modules/lib $(addprefix -l,$(LIBSTOLINK))\