[librsvg: 7/13] Build tests/api statically




commit 80e69ee349e3e525200e471e4881ab98e1f3413e
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Aug 4 19:10:24 2022 -0500

    Build tests/api statically
    
    Try to reduce the number of moving parts for the C API test suite, to
    see if we can get coverage to work in the Rust code there.
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/724>

 tests/Makefile.am | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 62ad4544a..c11862374 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -36,10 +36,12 @@ api_SOURCES =               \
        test-utils.h    \
        $(NULL)
 
-LDADD = $(top_builddir)/librsvg-@RSVG_API_MAJOR_VERSION@.la    \
+api_LDADD = $(top_builddir)/librsvg-@RSVG_API_MAJOR_VERSION@.la        \
        $(LIBRSVG_LIBS)                                         \
        $(LIBM)
 
+api_LDFLAGS = -static
+
 AM_CPPFLAGS =                                  \
        -I$(srcdir)                             \
        -I$(top_srcdir)/include                 \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]