Add $(LDFLAGS) and $(LIBS) to when building shared libs (#6425) (#6426)

This commit is contained in:
أحمد المحمودي 2025-09-12 19:40:13 +03:00 committed by GitHub
parent 8b7a841f09
commit 39fd625f0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ Please see the Verilator manual for 200+ additional contributors. Thanks to all.
Adam Bagley Adam Bagley
Adrian Sampson Adrian Sampson
Adrien Le Masle Adrien Le Masle
Ahmed El-Mahmoudy أحمد المحمودي (Ahmed El-Mahmoudy)
Aidan McNay Aidan McNay
Aleksander Kiryk Aleksander Kiryk
Alex Chadwick Alex Chadwick

View File

@ -770,10 +770,10 @@ public:
// So add dynamic_lookup // So add dynamic_lookup
of.puts("ifeq ($(shell uname -s),Darwin)\n"); of.puts("ifeq ($(shell uname -s),Darwin)\n");
of.puts("\t$(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_FAST) -undefined " of.puts("\t$(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_FAST) -undefined "
"dynamic_lookup -shared -flat_namespace -o $@ $^\n"); "dynamic_lookup -shared $(LDFLAGS) -flat_namespace -o $@ $^ $(LIBS)\n");
of.puts("else\n"); of.puts("else\n");
of.puts( of.puts("\t$(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_FAST) -shared "
"\t$(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_FAST) -shared -o $@ $^\n"); "$(LDFLAGS) -o $@ $^ $(LIBS)\n");
of.puts("endif\n"); of.puts("endif\n");
of.puts("\n"); of.puts("\n");
of.puts("lib" + v3Global.opt.libCreate() + ": " + v3Global.opt.libCreateName(false) of.puts("lib" + v3Global.opt.libCreate() + ": " + v3Global.opt.libCreateName(false)