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

This commit is contained in:
أحمد المحمودي
2025-09-12 12:40:13 -04:00
committed by GitHub
parent 8b7a841f09
commit 39fd625f0c
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -770,10 +770,10 @@ public:
// So add dynamic_lookup
of.puts("ifeq ($(shell uname -s),Darwin)\n");
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(
"\t$(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_FAST) -shared -o $@ $^\n");
of.puts("\t$(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_FAST) -shared "
"$(LDFLAGS) -o $@ $^ $(LIBS)\n");
of.puts("endif\n");
of.puts("\n");
of.puts("lib" + v3Global.opt.libCreate() + ": " + v3Global.opt.libCreateName(false)