[packages/libfetch] - link library with openssl

qboosh qboosh at pld-linux.org
Mon Apr 6 17:07:25 CEST 2026


commit e3ecfb8a5131c33671db8a11d5fc78080c79b5f1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Apr 6 17:07:50 2026 +0200

    - link library with openssl

 makefile-user-cflags.patch | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
diff --git a/makefile-user-cflags.patch b/makefile-user-cflags.patch
index 7d74fac..213cdb3 100644
--- a/makefile-user-cflags.patch
+++ b/makefile-user-cflags.patch
@@ -9,6 +9,24 @@
  
  
  CFLAGS	+= -DFTP_COMBINE_CWDS -DNETBSD
+@@ -22,7 +22,7 @@ endif
+ 
+ ifeq ($(strip $(FETCH_WITH_OPENSSL)), true)
+ CFLAGS+=	-DWITH_SSL
+-LDFLAGS=	-lssl -lcrypto
++LIBS=		-lssl -lcrypto
+ endif
+ 
+ ifeq ($(strip $(DEBUG)), true)
+@@ -65,7 +65,7 @@ httperr.h: http.errors
+ libfetch.so: $(GEN) $(INCS) $(OBJS)
+ 	$(E) "  build     " $@
+ 	$(Q) rm -f $@
+-	$(Q) $(LD) $(LDFLAGS) *.o -shared -o $@
++	$(Q) $(LD) $(LDFLAGS) *.o -shared -o $@ $(LIBS)
+ 
+ libfetch.a: $(GEN) $(INCS) $(OBJS)
+ 	$(E) "  build     " $@
 @@ -79,15 +79,15 @@ clean:
  .PHONY: clean
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libfetch.git/commitdiff/e3ecfb8a5131c33671db8a11d5fc78080c79b5f1



More information about the pld-cvs-commit mailing list