• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/e2fsprogs/0002-fuse2fs-might-need-librt.patch
Gustavo ZacariasGustavo Zacarias committed cd48a7e572a09 Jun 2016
Raw file
Source viewDiff to previous
 
1
From 14d9e94315cd8144ac72d368c45e70869a66799c Mon Sep 17 00:00:00 2001
2
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3
Date: Thu, 9 Jun 2016 07:47:03 -0300
4
Subject: [PATCH] fuse2fs: might need librt
5
​
6
It uses clock_gettime() which in older glibc versions is in librt.
7
​
8
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9
---
10
Patch status: sent to linux-ext4 ML
11
​
12
 configure.ac     | 5 +++++
13
 misc/Makefile.in | 3 ++-
14
 2 files changed, 7 insertions(+), 1 deletion(-)
15
​
16
diff --git a/configure.ac b/configure.ac
17
index 67d7231..a387dfd 100644
18
--- a/configure.ac
19
+++ b/configure.ac
20
@@ -1162,6 +1162,11 @@ if test "$ac_cv_func_dlopen" = yes ; then
21
 fi
22
 AC_SUBST(MAGIC_LIB)
23
 dnl
24
+dnl Check to see if librt is required for clock_gettime() (glibc < 2.17)
25
+dnl
26
+AC_CHECK_LIB(rt, clock_gettime, [CLOCK_GETTIME_LIB=-lrt])
27
+AC_SUBST(CLOCK_GETTIME_LIB)
28
+dnl
29
 dnl Check to see if the FUSE library is -lfuse or -losxfuse
30
 dnl
31
 FUSE_CMT=
32
diff --git a/misc/Makefile.in b/misc/Makefile.in
33
index 43e3c7e..070a6e3 100644
34
--- a/misc/Makefile.in
35
+++ b/misc/Makefile.in
36
@@ -387,7 +387,8 @@ fuse2fs: $(FUSE2FS_OBJS) $(DEPLIBS) $(DEPLIBBLKID) $(DEPLIBUUID) \
37
        $(LIBEXT2FS)
38
    $(E) "  LD $@"
39
    $(Q) $(CC) $(ALL_LDFLAGS) -o fuse2fs $(FUSE2FS_OBJS) $(LIBS) \
40
-       $(LIBFUSE) $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBINTL)
41
+       $(LIBFUSE) $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBINTL) \
42
+       $(CLOCK_GETTIME_LIB)
43
 
44
 journal.o: $(srcdir)/../debugfs/journal.c
45
    $(E) "  CC $@"
46
-- 
47
2.7.3
48
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.