aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-05-29 19:26:09 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-05-29 19:26:09 +0000
commit02f6446be6e3eafedb02e6a210a74ae798d5da0d (patch)
tree581feb5da76901640078be1d22f19ad6358fd0e7
parentbbb07da0e2b25de74fb23baadd90e943094e68f2 (diff)
downloadexecline-02f6446be6e3eafedb02e6a210a74ae798d5da0d.tar.gz
Correctly use pthread_lib sysdep
-rwxr-xr-xconfigure8
-rw-r--r--src/execline/eltest.c1
-rwxr-xr-xtools/configure.template8
3 files changed, 13 insertions, 4 deletions
diff --git a/configure b/configure
index 83aaf49..a55117d 100755
--- a/configure
+++ b/configure
@@ -404,8 +404,10 @@ echo " ... *.$shlibext"
if $allpic ; then
tryflag CPPFLAGS_AUTO -fPIC
fi
-spawn_lib=$(cat $sysdeps/spawn.lib)
+
+pthread_lib=$(cat $sysdeps/pthread.lib)
socket_lib=$(cat $sysdeps/socket.lib)
+spawn_lib=$(cat $sysdeps/spawn.lib)
sysclock_lib=$(cat $sysdeps/sysclock.lib)
timer_lib=$(cat $sysdeps/timer.lib)
util_lib=$(cat $sysdeps/util.lib)
@@ -474,8 +476,10 @@ home := $home
exthome := $exthome
extra_includedirs :=$depincpath
extra_libdirs :=$deplibpath
-SPAWN_LIB := ${spawn_lib}
+
+PTHREAD_LIB := ${pthread_lib}
SOCKET_LIB := ${socket_lib}
+SPAWN_LIB := ${spawn_lib}
SYSCLOCK_LIB := ${sysclock_lib}
TIMER_LIB := ${timer_lib}
UTIL_LIB := ${util_lib}
diff --git a/src/execline/eltest.c b/src/execline/eltest.c
index 1478f36..101dd15 100644
--- a/src/execline/eltest.c
+++ b/src/execline/eltest.c
@@ -1,5 +1,6 @@
/* ISC license. */
+#include <skalibs/nonposix.h>
#include <skalibs/bsdsnowflake.h>
#include <unistd.h>
diff --git a/tools/configure.template b/tools/configure.template
index db8f59a..ac8ac86 100755
--- a/tools/configure.template
+++ b/tools/configure.template
@@ -389,8 +389,10 @@ echo " ... *.$shlibext"
if $allpic ; then
tryflag CPPFLAGS_AUTO -fPIC
fi
-spawn_lib=$(cat $sysdeps/spawn.lib)
+
+pthread_lib=$(cat $sysdeps/pthread.lib)
socket_lib=$(cat $sysdeps/socket.lib)
+spawn_lib=$(cat $sysdeps/spawn.lib)
sysclock_lib=$(cat $sysdeps/sysclock.lib)
timer_lib=$(cat $sysdeps/timer.lib)
util_lib=$(cat $sysdeps/util.lib)
@@ -459,8 +461,10 @@ home := $home
exthome := $exthome
extra_includedirs :=$depincpath
extra_libdirs :=$deplibpath
-SPAWN_LIB := ${spawn_lib}
+
+PTHREAD_LIB := ${pthread_lib}
SOCKET_LIB := ${socket_lib}
+SPAWN_LIB := ${spawn_lib}
SYSCLOCK_LIB := ${sysclock_lib}
TIMER_LIB := ${timer_lib}
UTIL_LIB := ${util_lib}