Skip to content

Commit 8f0ef06

Browse files
committed
Fixes for bullseye platform with different architectures
Signed-off-by: ashish-jabble <[email protected]>
1 parent bfbe800 commit 8f0ef06

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

others/make_deb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,15 @@ fi
154154
if [ "${ADDITIONAL_LIB_NAME}" == "s2opcua" ]; then
155155
cp -R --preserve=links /usr/local/lib/libs2opc_common.so usr/local/lib
156156
cp -R --preserve=links /usr/local/lib/libs2opc_clientserver.so usr/local/lib
157-
cp -R --preserve=links /usr/local/lib/libexpat.so.1 usr/local/lib
157+
if [[ ${v_name} == *"bullseye"* ]]; then
158+
if [[ ${architecture} == *"armv7l"* ]]; then
159+
cp -R --preserve=links /usr/local/lib/arm-linux-gnueabihf/libexpat.so.1 usr/local/lib
160+
else
161+
cp -R --preserve=links /usr/local/lib/aarch64-linux-gnu/libexpat.so.1 usr/local/lib
162+
fi
163+
else
164+
cp -R --preserve=links /usr/local/lib/libexpat.so.1 usr/local/lib
165+
fi
158166
fi
159167
echo "Done."
160168

0 commit comments

Comments
 (0)