Skip to content

Commit 05a2b0f

Browse files
(fix) OpenDSSC correct find condition and add to linker path
Signed-off-by: Leonardo Carreras <leonardo.carreras@eonerc.rwth-aachen.de>
1 parent 063f8b3 commit 05a2b0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packaging/deps.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ if ! pkg-config "libmodbus >= 3.1.0" && \
484484
popd
485485
fi
486486

487-
if ! find /usr/{local/,}{lib,bin} -name "libOpenDSSC.so" | grep -q . &&
487+
if ! find /usr/local/ -name "libOpenDSSC.so" | grep -q . &&
488488
should_build "opendss" "For opendss node-type"; then
489489
git svn clone -r 4020:4020 https://svn.code.sf.net/p/electricdss/code/trunk/VersionC OpenDSS-C
490490
mkdir -p OpenDSS-C/build
@@ -502,6 +502,8 @@ if ! find /usr/{local/,}{lib,bin} -name "libOpenDSSC.so" | grep -q . &&
502502
${OPENDSS_CMAKE_OPTS} \
503503
${CMAKE_OPTS} ..
504504
make ${MAKE_OPTS} install
505+
DSSC_PATH=$(find / -name libOpenDSSC.so 2>/dev/null | head -n 1 | xargs dirname)
506+
echo "$DSSC_PATH" > /etc/ld.so.conf.d/opendssc.conf
505507
popd
506508
fi
507509

0 commit comments

Comments
 (0)