summaryrefslogtreecommitdiff
path: root/user/dracut/fts.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-04-05 09:56:16 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-04-05 09:56:16 +0000
commit038ce73bcea59d28f91ad76cd23b291eebd86f6e (patch)
treebffb5672ab1f07d725ebaba449b1fd1d0d3cf8cb /user/dracut/fts.patch
parent46ded9a40e37eb705ad597455822e96fe0d84884 (diff)
downloadpackages-038ce73bcea59d28f91ad76cd23b291eebd86f6e.tar.gz
packages-038ce73bcea59d28f91ad76cd23b291eebd86f6e.tar.bz2
packages-038ce73bcea59d28f91ad76cd23b291eebd86f6e.tar.xz
packages-038ce73bcea59d28f91ad76cd23b291eebd86f6e.zip
user/dracut: Update to 050
Diffstat (limited to 'user/dracut/fts.patch')
-rw-r--r--user/dracut/fts.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/user/dracut/fts.patch b/user/dracut/fts.patch
new file mode 100644
index 000000000..f2bbb03b7
--- /dev/null
+++ b/user/dracut/fts.patch
@@ -0,0 +1,30 @@
+From 7f6517b7dc3f3d160ae43de43d1184b137c0c96f Mon Sep 17 00:00:00 2001
+From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
+Date: Sun, 5 Apr 2020 04:52:19 -0500
+Subject: [PATCH] configure: Find FTS library with --as-needed
+
+When LDFLAGS contains ``-Wl,--as-needed``, the FTS library will be
+ignored if it is specified before the .c source.
+
+Signed-off-by: A. Wilcox <AWilcox@Wilcox-Tech.com>
+Fixes: 62f27ee6f145 ("configure: find cflags and libs for fts on musl")
+---
+ configure | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure b/configure
+index 3f724ef2..aceec138 100755
+--- a/configure
++++ b/configure
+@@ -85,7 +85,7 @@ EOF
+
+ found=no
+ for lib in "-lc" "-lfts"; do
+- ${CC} $CFLAGS -Wl,$lib $LDFLAGS conftest.c >/dev/null 2>&1
++ ${CC} $CFLAGS $LDFLAGS conftest.c -Wl,$lib >/dev/null 2>&1
+ ret=$?
+ if test $ret -eq 0; then
+ FTS_LIBS="$lib"
+--
+2.25.1
+