Skip to content

Commit

Permalink
Fix linking with non-gcc compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Jan 14, 2013
1 parent de649f0 commit e784632
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/Makefile.am
Expand Up @@ -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

Expand Down

0 comments on commit e784632

Please sign in to comment.