Skip to content

Commit 148a71f

Browse files
committed
Added patch to revert commit adding -mt for pthread support
This patch effectively reverts commit curl/curl@74fdc11 adding -mt for pthread support on HP-UX. The commit only checks for the host OS and does not take into account which compiler is used. Since we are using gcc, it does not work for us. Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 7e075e9 commit 148a71f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -ruN curl-8.17.0/configure curl-8.17.0-modified/configure
2+
--- curl-8.17.0/configure 2025-11-05 08:00:46.000000000 +0100
3+
+++ curl-8.17.0-modified/configure 2025-11-24 10:30:02.624381820 +0100
4+
@@ -44414,7 +44414,7 @@
5+
6+
case $host in
7+
*-hp-hpux*)
8+
- CFLAGS="$CFLAGS -mt"
9+
+ USE_THREADS_POSIX=""
10+
;;
11+
*)
12+
;;

deps-packaging/libcurl/hpux/build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ TTD=${BUILD_ROOT}/cfbuild-libcurl-devel${PREFIX}
99

1010
# Build
1111

12+
# This patch effectively reverts commit https://github.com/curl/curl/commit/74fdc1185f40c2fe2253043ff3f563fbbd4b43ed
13+
# that does not work for us, since we use the gcc compiler.
14+
$PATCH -p1 < 'Revert-configure-add-mt-for-pthread-support-on-HP-UX.patch'
15+
1216
# autotools on hpux 11.23 with gcc 4.2.3 uses -std=gnu99 which excludes _LARGEFILE_SOURCE required for fseeko()
1317
# see https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html for reference on _LARGEFILE_SOURCE
14-
1518
./configure --prefix=$PREFIX \
1619
--with-sysroot=$PREFIX \
1720
--with-ssl=$PREFIX \

0 commit comments

Comments
 (0)