ports/math/dsdp/files/patch-Makefile
Thierry Thomas 2a236ba2fb math/dsdp: adding a SONAME to the shared library
When building math/py-cvxopt the following error is displayed:
Error: /usr/local/lib/python3.9/site-packages/cvxopt/dsdp.cpython-39.so is
linked to /usr/local/lib/libdsdp.so which does not have a SONAME.
math/dsdp needs to be fixed.

Since I’m there, also install the static library.

PR:		274851
Approved by:	yuri 'maintainer)
2023-11-01 18:22:16 +01:00

14 lines
374 B
Text

--- Makefile.orig 2005-10-21 19:31:14 UTC
+++ Makefile
@@ -53,8 +53,8 @@ oshared:
-@${RM} tmp; \
mkdir tmp; \
cd tmp; \
- echo "building ${DSDPLIBSO}"; \
- ${AR} x ${DSDPLIB} ;\
- ${SH_LD} ${DSDPLIBSO} *.o -o ${DSDPLIBSO}; \
+ echo "building ${DSDPLIBSO}"
+ ${AR} x ${DSDPLIB}
+ $(SH_LD) $(LDFLAGS) -llapack -lblas -lm *.o -o ${DSDPLIBSO}; \
cd ../ ; \
${RM} tmp