From a8ae6f05eab194c5e269f900e04f903d27fe8b05 Mon Sep 17 00:00:00 2001 From: RonxBulld <526677628@qq.com> Date: Tue, 22 Apr 2025 00:54:51 +0800 Subject: [PATCH] Fixed the problem of not calling abc correctly when using libyosys.so library (it will try to call yosys-abc as command line instead of calling abc::Abc_RealMain) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 76ac4bb18..94dfe3993 100644 --- a/Makefile +++ b/Makefile @@ -396,6 +396,10 @@ ifeq ($(DISABLE_ABC_THREADS),1) ABCMKARGS += "ABC_USE_NO_PTHREADS=1" endif +ifeq ($(LINK_ABC),1) +ABCMKARGS += "ABC_USE_PIC=1" +endif + ifeq ($(DISABLE_SPAWN),1) CXXFLAGS += -DYOSYS_DISABLE_SPAWN endif