summaryrefslogtreecommitdiff
path: root/media-libs/freetype/files/freetype-2.10.4-slibtool_build_fix.patch
blob: 895a86c444d635bc7f570c9d4c8b0a6710403a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 8e9447b32dae7e6c95bee3f878ee1877f9b628a4 Mon Sep 17 00:00:00 2001
From: orbea <orbea@riseup.net>
Date: Mon, 22 Mar 2021 16:15:09 -0700
Subject: [PATCH] [graph] Fix build with `slibtool`.

* graph/rules.mk (GRAPH_LIB): Handle the case specially where
`LIBTOOL` is defined.
(COMPILE_GRAPH_LIB) <LIBTOOL>: Enable use of `dlopen`.
---
 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