Link API test programs with C++ linker

Needed to make ubsan work.

Fixes https://github.com/harfbuzz/harfbuzz/issues/1174
This commit is contained in:
Behdad Esfahbod 2018-09-24 13:01:35 -04:00
parent a96508cfc9
commit d07f3111b4
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ EXTRA_DIST += CMakeLists.txt
EXTRA_DIST += fonts EXTRA_DIST += fonts
LINK = $(CXXLINK)
if HAVE_GLIB if HAVE_GLIB
AM_CPPFLAGS = -DSRCDIR="\"$(srcdir)\"" -I$(top_srcdir)/src/ -I$(top_builddir)/src/ $(GLIB_CFLAGS) AM_CPPFLAGS = -DSRCDIR="\"$(srcdir)\"" -I$(top_srcdir)/src/ -I$(top_builddir)/src/ $(GLIB_CFLAGS)
LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_LIBS) LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_LIBS)