Commit 329b71b7 authored by Christoph Reiter's avatar Christoph Reiter 🐍

autotools: don't pass all the libregress cflags to the scanner. Fixes #226

They contain things like -fvisibility=hidden which, in case of building with
CFLAGS="-flto -O2" LDFLAGS="-Wl,--as-needed -flto", results in the linker
throwing out unused symbols and not linking the dumper against libregress.

This results in errors like:
  Invalid GType function: 'regress_test_enum_get_type'
  Failed to find symbol 'regress_test_enum_get_type'

Fix this by only passing the required CFLAGS to the scanner instead.
parent f606183a
Pipeline #50812 passed with stages
in 6 minutes and 20 seconds
......@@ -91,7 +91,10 @@ GIRS += SLetter-1.0.gir
Regress-1.0.gir: $(top_builddir)/Gio-2.0.gir Utility-1.0.gir
Regress_1_0_gir_LIBS =
Regress_1_0_gir_CFLAGS = $(libregress_la_CPPFLAGS) $(libregress_la_CFLAGS) -include "glib.h"
Regress_1_0_gir_CFLAGS = $(GI_SCANNER_CFLAGS)
Regress_1_0_gir_CFLAGS += -D_GI_DISABLE_CAIRO
Regress_1_0_gir_INCLUDES = Gio-2.0 Utility-1.0
Regress_1_0_gir_INCLUDES += cairo-1.0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment