pkgsrc-ng/editors/gummi/patches/patch-configure.ac
2016-11-18 22:39:22 +01:00

17 lines
524 B
Plaintext

$NetBSD: patch-configure.ac,v 1.1 2016/08/09 18:23:20 bsiegert Exp $
--- configure.ac.orig 2016-01-27 19:27:48.000000000 +0000
+++ configure.ac
@@ -65,7 +65,10 @@ if test "$spellcheck" = yes; then
fi
# Add explicit linking flags
-GUI_LIBS="$GUI_LIBS -pthread -lm -lz -lrt"
+GUI_LIBS="$GUI_LIBS -pthread -lm -lz"
+AC_CHECK_LIB(rt, clock_gettime, [
+ GUI_LIBS="$GUI_LIBS -lrt"
+])
# Checks for header files.
AC_CHECK_HEADERS([libintl.h locale.h netdb.h stdlib.h string.h sys/socket.h sys/time.h unistd.h fcntl.h])