summaryrefslogtreecommitdiffstats
path: root/debian/patches/fix-system-libfixmath.diff
blob: ab771b5358827ee0bcc0dcdc4087e53c2f76d854 (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
diff --git a/config_host.mk.in b/config_host.mk.in
index 9de974e472f9..1352749754e3 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -645,6 +645,7 @@ export SYSTEM_LIBATOMIC_OPS=@SYSTEM_LIBATOMIC_OPS@
 export SYSTEM_LIBEOT=@SYSTEM_LIBEOT@
 export SYSTEM_LIBEXTTEXTCAT=@SYSTEM_LIBEXTTEXTCAT@
 export SYSTEM_LIBEXTTEXTCAT_DATA=@SYSTEM_LIBEXTTEXTCAT_DATA@
+export SYSTEM_LIBFIXMATH=@SYSTEM_LIBFIXMATH@
 export SYSTEM_LIBLANGTAG=@SYSTEM_LIBLANGTAG@
 export SYSTEM_LIBNUMBERTEXT=@SYSTEM_LIBNUMBERTEXT@
 export SYSTEM_LIBNUMBERTEXT_DATA=@SYSTEM_LIBNUMBERTEXT_DATA@
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index 1d18d2325ad8..b40cb77cb34f 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -569,6 +569,12 @@ vcl_headless_freetype_code=\
     vcl/unx/generic/printer/jobdata \
     vcl/unx/generic/printer/ppdparser \
 
+ifeq ($(SYSTEM_LIBFIXMATH),TRUE)
+$(eval $(call gb_Library_add_libs,vcl,\
+        -llibfixmath \
+))
+endif
+
 ifeq ($(USING_X11),TRUE)
 $(eval $(call gb_Library_add_exception_objects,vcl,\
     vcl/unx/generic/window/screensaverinhibitor \