[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 1d6773e: Add check for librt, needed for `ftbench' (#
From: |
Werner LEMBERG |
Subject: |
[freetype2] master 1d6773e: Add check for librt, needed for `ftbench' (#52824). |
Date: |
Sun, 7 Jan 2018 13:12:06 -0500 (EST) |
branch: master
commit 1d6773e6d999c37e7927c5d9cc48fb87d0dbf0cb
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>
Add check for librt, needed for `ftbench' (#52824).
* builds/unix/configure.raw: Call AC_USE_SYSTEM_EXTENSIONS.
(LIB_CLOCK_GETTIME): Define; this will hold `-lrt' if necessary.
* builds/unix/unix-cc.in (LIB_CLOCK_GETTIME): New variable.
---
ChangeLog | 9 +++++++++
builds/unix/configure.raw | 15 +++++++++++++++
builds/unix/unix-cc.in | 3 ++-
3 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 5edd30b..cf55aa6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2018-01-07 Werner Lemberg <address@hidden>
+
+ Add check for librt, needed for `ftbench' (#52824).
+
+ * builds/unix/configure.raw (LIB_CLOCK_GETTIME): Define; this will
+ hold `-lrt' if necessary.
+
+ * builds/unix/unix-cc.in (LIB_CLOCK_GETTIME): New variable.
+
2018-01-07 Ewald Hew <address@hidden>
[psaux] Fix Type 1 glyphs with too many stem hints.
diff --git a/builds/unix/configure.raw b/builds/unix/configure.raw
index 126e091..b5d11b2 100644
--- a/builds/unix/configure.raw
+++ b/builds/unix/configure.raw
@@ -509,6 +509,21 @@ if test x"$with_harfbuzz" = xyes -a "$have_harfbuzz" = no;
then
fi
+# check for librt
+#
+# We need `clock_gettime' for the `ftbench' demo program.
+#
+# The code is modeled after gnulib's file `clock_time.m4', ignoring
+# very old Solaris systems.
+
+LIB_CLOCK_GETTIME=
+AC_SEARCH_LIBS([clock_gettime],
+ [rt],
+ [test "$ac_cv_search_clock_gettime" = "none required" \
+ || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime])
+AC_SUBST([LIB_CLOCK_GETTIME])
+
+
# Some options handling SDKs/archs in CFLAGS should be copied
# to LDFLAGS. Apple TechNote 2137 recommends to include these
# options in CFLAGS but not in LDFLAGS.
diff --git a/builds/unix/unix-cc.in b/builds/unix/unix-cc.in
index 9b888c7..a06246d 100644
--- a/builds/unix/unix-cc.in
+++ b/builds/unix/unix-cc.in
@@ -93,7 +93,8 @@ CC := $(LIBTOOL) --mode=compile $(CCraw)
# Linker flags.
#
-LDFLAGS := @LDFLAGS@
+LDFLAGS := @LDFLAGS@
+LIB_CLOCK_GETTIME := @LIB_CLOCK_GETTIME@ # for ftbench
# export symbols
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 1d6773e: Add check for librt, needed for `ftbench' (#52824).,
Werner LEMBERG <=