changeset 5434:22c56c4712b6

* src/cairo.mk: include explicit LIBS
author John Donoghue <john.donoghue@ieee.org>
date Fri, 29 May 2020 15:14:40 -0400
parents d35dea88cc4c
children e2f8b7a140f7
files src/cairo.mk
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cairo.mk	Fri May 29 15:14:37 2020 -0400
+++ b/src/cairo.mk	Fri May 29 15:14:40 2020 -0400
@@ -27,6 +27,7 @@
     ifeq ($(BUILD_STATIC),yes)
         $(PKG)_EXTRA_CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DCAIRO_WIN32_STATIC_BUILD"
     endif
+    $(PKG)_EXTRA_CONFIGURE_OPTIONS += LIBS="-lssp -lmsimg32 -lgdi32"
 endif
 
 # Configure script to detect float word endianness fails on MSVC.
@@ -35,6 +36,7 @@
 endif
 
 define $(PKG)_BUILD
+    $(SED) -i 's,^\(Libs:.*\),\1 @CAIRO_NONPKGCONFIG_LIBS@,' '$(1)/src/cairo.pc.in'
     cd '$(1)' && ./configure \
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
         $(ENABLE_SHARED_OR_STATIC) \