mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 08:41:51 -04:00
fix the shared library to make sure it provides a soname. while here follow the gentoo and openbsd path by providing a .pc file some of the futur ports depending on uSockets requires it. Approved by: yuri Differential Revision: https://reviews.freebsd.org/D48110
11 lines
391 B
Text
11 lines
391 B
Text
--- Makefile.orig 2024-02-07 13:04:14 UTC
|
|
+++ Makefile
|
|
@@ -88,7 +88,7 @@ endif
|
|
$(CXX) $(CXXFLAGS) -std=c++17 -flto -O3 -c src/crypto/*.cpp
|
|
endif
|
|
# Create a static library (try windows, then unix)
|
|
- lib.exe /out:uSockets.a *.o || $(AR) rvs uSockets.a *.o
|
|
+ $(CXX) -shared -o libuSockets.so.0 -Wl,-soname=libuSockets.so.0 *.o -lssl
|
|
|
|
# BoringSSL needs cmake and golang
|
|
.PHONY: boringssl
|