From 5ed7a834a4e0e24c3968dd1e98ceb4b9d5f9791a Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 18 Aug 2024 11:32:03 -0700 Subject: [PATCH] more robust libdbc linking --- opendbc/can/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opendbc/can/SConscript b/opendbc/can/SConscript index aed8b5423a..a15aa6927e 100644 --- a/opendbc/can/SConscript +++ b/opendbc/can/SConscript @@ -14,8 +14,8 @@ libdbc = envDBC.SharedLibrary('libdbc', src, LIBS=[common, ], LINKFLAGS=LINKFLAG # Build packer and parser lenv = envCython.Clone() lenv["RPATH"] = [libdbc[0].dir.abspath, ] -parser = lenv.Program('parser_pyx.so', 'parser_pyx.pyx', LIBS=[common, libdbc]) -packer = lenv.Program('packer_pyx.so', 'packer_pyx.pyx', LIBS=[common, libdbc]) +parser = lenv.Program('parser_pyx.so', 'parser_pyx.pyx', LIBS=[common, libdbc[0].name]) +packer = lenv.Program('packer_pyx.so', 'packer_pyx.pyx', LIBS=[common, libdbc[0].name]) opendbc_python = Alias("opendbc_python", [parser, packer])