shithub: tlsclient

Download patch

ref: 0ca1541b155d0107aea29a8bed4ef23f20365f37
parent: 9da29f68310efe5887348d8410ae9f00a7e34c77
author: B. Atticus Grobe <[email protected]>
date: Thu May 5 19:16:58 EDT 2022

This fixes issues with undefined symbols on systems that use the garbage
that GNU calls linkers.

So, if you ever have issues with undefined symbols during link with
other projects, do yourself a favour and fire up clang using lld. It
actually works.

--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
 
 default: $(TARG)
 $(TARG): $(LIBS) $(OFILES)
-	$(CXX) -pthread -Lthird_party/boringssl -lcrypto -lssl $(LDFLAGS) -o $(TARG) $(OFILES) $(LIBS) $(LDADD)
+	$(CXX) -pthread -Lthird_party/boringssl -Wl,--start-group -lcrypto -lssl -Wl,--end-group $(LDFLAGS) -o $(TARG) $(OFILES) -Wl,--start-group $(LIBS) -Wl,--end-group $(LDADD)
 
 login_-dp9ik: $(LIBS) p9any.$O bsd.$O
 	$(CC) -o login_-dp9ik p9any.$O bsd.$O $(LIBS)