summaryrefslogtreecommitdiffstats
path: root/debian/patches/fix-system-libfixmath.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fix-system-libfixmath.diff')
-rw-r--r--debian/patches/fix-system-libfixmath.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/fix-system-libfixmath.diff b/debian/patches/fix-system-libfixmath.diff
new file mode 100644
index 000000000..ab771b535
--- /dev/null
+++ b/debian/patches/fix-system-libfixmath.diff
@@ -0,0 +1,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 \