mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-02 22:03:07 +02:00
Link libglib against -lrt if we have clock_gettime
This commit is contained in:
parent
dfb0577ef4
commit
817b322ca7
@ -2384,8 +2384,10 @@ AC_CHECK_FUNCS(clock_gettime, [], [
|
|||||||
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
|
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
|
||||||
G_THREAD_LIBS="$G_THREAD_LIBS -lrt"
|
G_THREAD_LIBS="$G_THREAD_LIBS -lrt"
|
||||||
G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt"
|
G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt"
|
||||||
|
GLIB_RT_LIBS="-lrt"
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
AC_SUBST(GLIB_RT_LIBS)
|
||||||
|
|
||||||
AC_CACHE_CHECK(for monotonic clocks,
|
AC_CACHE_CHECK(for monotonic clocks,
|
||||||
glib_cv_monotonic_clock,AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
glib_cv_monotonic_clock,AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
@ -334,7 +334,7 @@ pcre_lib =
|
|||||||
pcre_inc =
|
pcre_inc =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib)
|
libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib) $(GLIB_RT_LIBS)
|
||||||
libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def)
|
libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def)
|
||||||
|
|
||||||
libglib_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
libglib_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user