Fix linking with non-gcc compilers

This commit is contained in:
Behdad Esfahbod 2013-01-14 00:27:21 -06:00
parent de649f07f1
commit e78463211e
2 changed files with 7 additions and 1 deletions

View File

@ -88,6 +88,8 @@ if test "x$GCC" = "xyes"; then
esac
fi
AM_CONDITIONAL(HAVE_GCC, test "x$GCC" = "xyes")
hb_os_win32=no
AC_MSG_CHECKING([for native Win32])
case "$host" in

View File

@ -198,8 +198,12 @@ else
if HAVE_ICU
libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
else
# Use a C linker, not C++; Don't link to libstdc++
# Use a C linker for GCC, not C++; Don't link to libstdc++
if HAVE_GCC
libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)
else
libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
endif
endif
endif