0002-MCONFIG.in-handle-CLOCK_GETTIME_LIB.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From b5baf15b36107925186d89af9097b4b8e2d7cad6 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Wed, 21 Sep 2016 08:38:21 +0200
  4. Subject: [PATCH] MCONFIG.in: handle CLOCK_GETTIME_LIB
  5. Commit 62bc243f1bfe623312a350e4cd0d2e17a69aac45 ("fuse2fs: might need
  6. librt") added a check for the clock_gettime() to verify whether linking
  7. with the librt library is needed or not to use this function.
  8. However, this commit forgot the change in MCONFIG.in that allows to
  9. define the make variable CLOCK_GETTIME_LIB from the CLOCK_GETTIME_LIB
  10. variable substituted by the configure script. Due to this, from a make
  11. perspective $(CLOCK_GETTIME_LIB) is always empty, and we get link
  12. failure on platforms where clock_gettime() is available in librt.
  13. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  14. ---
  15. MCONFIG.in | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/MCONFIG.in b/MCONFIG.in
  18. index e82963d..9ba9ce2 100644
  19. --- a/MCONFIG.in
  20. +++ b/MCONFIG.in
  21. @@ -125,6 +125,7 @@ LIBSUPPORT = $(LIBINTL) $(LIB)/libsupport@STATIC_LIB_EXT@
  22. LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID)
  23. LIBINTL = @LIBINTL@
  24. SYSLIBS = @LIBS@
  25. +CLOCK_GETTIME_LIB = @CLOCK_GETTIME_LIB@
  26. DEPLIBSS = $(LIB)/libss@LIB_EXT@
  27. DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
  28. DEPLIBUUID = @DEPLIBUUID@
  29. --
  30. 2.7.4