From 215846b0e3f047f16699a61342dccd9f7562e060 Mon Sep 17 00:00:00 2001 From: orbea Date: Mon, 22 Mar 2021 16:15:09 -0700 Subject: [PATCH] graph: Fix the build with slibtool. --- graph/rules.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graph/rules.mk b/graph/rules.mk index 4903a38..a3f0de1 100644 --- a/graph/rules.mk +++ b/graph/rules.mk @@ -12,7 +12,6 @@ GRAPH_INCLUDES := $(subst /,$(COMPILER_SEP),$(TOP_DIR_2)/graph) -GRAPH_LIB := $(OBJ_DIR_2)/graph.$(SA) GRAPH := $(TOP_DIR_2)/graph @@ -46,9 +45,11 @@ GRAPH_OBJS := $(OBJ_DIR_2)/gblblit.$(O) \ # this value can be modified by the system-specific graphics drivers. # ifneq ($(LIBTOOL),) - COMPILE_GRAPH_LIB = $(LIBTOOL) --mode=link $(CCraw) -static \ + GRAPH_LIB := $(OBJ_DIR_2)/graph.$(A) + COMPILE_GRAPH_LIB = $(LIBTOOL) --mode=link $(CCraw) -module -static \ -o $(subst /,$(COMPILER_SEP),$@ $(GRAPH_OBJS)) else + GRAPH_LIB := $(OBJ_DIR_2)/graph.$(SA) COMPILE_GRAPH_LIB = ar -r $(subst /,$(COMPILER_SEP),$@ $(GRAPH_OBJS)) endif -- GitLab