Skip to content

Commit 2a64d52

Browse files
authored
Explain how to create own binaries (#33)
1 parent e979810 commit 2a64d52

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,12 @@ List of supported model attributes:
6767

6868
* [`MOI.ObjectiveSense()`](@ref)
6969

70+
## Compile your own binaries
71+
72+
In order to compile your own `libdsdp.so` to be used of DSDP.jl, use the following
73+
```sh
74+
OB_DIR=$(julia --project=. -e 'import OpenBLAS32_jll; println(OpenBLAS32_jll.OpenBLAS32_jll.artifact_dir)')
75+
OB="-L${LIBOB_DIR}/lib -lopenblas"
76+
make DSDPCFLAGS="-g -Wall -fPIC -DPIC" LAPACKBLAS="$OB" dsdplibrary
77+
make DSDPCFLAGS="-g -Wall -fPIC -DPIC" LAPACKBLAS="$OB" SH_LD="${CC} ${CFLAGS} -Wall -fPIC -DPIC -shared $OB" oshared
78+
```

0 commit comments

Comments
 (0)