diff --git a/graph/rules.mk b/graph/rules.mk index 4903a384905ff0ca0c3c2f1b5f62b51f38dff8df..a3f0de1cb26642a05985af44220c647b02efff35 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