• 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/wget/wget-0001-spawn-fix-link-error-on-uclibc.patch
Baruch SiachBaruch Siach committed 84bf8f04c6803 Mar 2014
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From d6eab2e70fc5ccc82a73e5c988b76a229e4cd3d5 Mon Sep 17 00:00:00 2001
2
Message-Id: <d6eab2e70fc5ccc82a73e5c988b76a229e4cd3d5.1393836674.git.baruch@tkos.co.il>
3
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <P@draigBrady.com>
4
Date: Tue, 14 Jan 2014 16:59:07 +0000
5
Subject: [PATCH] spawn: fix link error on uclibc
6
​
7
* m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
8
to incorporate -lrt if needed (on uclibc for example).
9
* modules/posix_spawn: Reference the substituted LIB.
10
​
11
Patch status: upstream (gnulib commit d6eab2e70fc5ccc82a73e5c988b76a229e4cd3d5)
12
​
13
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
14
---
15
​
16
diff --git a/m4/spawn_h.m4 b/m4/spawn_h.m4
17
index 87fe12298471..3eb835c3c2a8 100644
18
--- a/m4/spawn_h.m4
19
+++ b/m4/spawn_h.m4
20
@@ -64,7 +64,15 @@ AC_DEFUN([gl_HAVE_POSIX_SPAWN],
21
   dnl once only, before all statements that occur in other macros.
22
   AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
23
 
24
-  AC_CHECK_FUNCS_ONCE([posix_spawn])
25
+  LIB_POSIX_SPAWN=
26
+  AC_SUBST([LIB_POSIX_SPAWN])
27
+  gl_saved_libs=$LIBS
28
+    AC_SEARCH_LIBS([posix_spawn], [rt],
29
+                   [test "$ac_cv_search_posix_spawn" = "none required" ||
30
+                    LIB_POSIX_SPAWN=$ac_cv_search_posix_spawn])
31
+    AC_CHECK_FUNCS([posix_spawn])
32
+  LIBS=$gl_saved_libs
33
+
34
   if test $ac_cv_func_posix_spawn != yes; then
35
     HAVE_POSIX_SPAWN=0
36
   fi
37
 
38
-- 
39
1.9.0
40
​
  • 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.