Package: pike7.4
Severity: important
Version: 7.4.341-2 
Tags: patch

Hi,

the current version fails to build on GNU/kFreeBSD.

Please find a small attached patch to fix that.

It would also be nice if you can ask upstream 
to include this changes into pike7.4 branch.

Thanks in advance

                        Petr
only in patch2:
unchanged:
--- pike7.4-7.4.341.orig/src/configure.in
+++ pike7.4-7.4.341/src/configure.in
@@ -655,7 +655,7 @@
         pike_cv_run_path_method=r
       fi
     ;;
-    Linux\ 2.*)
+    Linux\ 2.* | *kFreeBSD*)
       pike_cv_run_path_method=wl
     ;;
     UnixWare\ 7.*|OpenUNIX\ 8.*)
@@ -5939,6 +5939,7 @@
     DYNIX/ptx*) LDSHARED="ld -G";;
     next*) LDSHARED="$REALCC $CFLAGS -nostdlib -r";;
     Linux*) LDSHARED="$REALCC -shared";;
+    GNU/kFreeBSD*) LDSHARED="$REALCC -shared";;
     GNU*) LDSHARED="ld -Bshareable";;
     FreeBSD*) LDSHARED="$REALCC -Wl,-Bshareable";;
     NetBSD*) LDSHARED="ld -Bshareable";;
@@ -6242,7 +6244,7 @@
     signal_handler="custom NT"
   ;;
 
-  xLinux)
+  xLinux|*kFreeBSD*)
     # Linux's stupid thread implementation doesn't survive USE_WAIT_THREAD.
     signal_handler="SIGCHILD"
     AC_DEFINE(USE_SIGCHILD)
only in patch2:
unchanged:
--- pike7.4-7.4.341.orig/src/configure
+++ pike7.4-7.4.341/src/configure
@@ -4774,7 +4774,7 @@
         pike_cv_run_path_method=r
       fi
     ;;
-    Linux\ 2.*)
+    Linux\ 2.* | *kFreeBSD*)
       pike_cv_run_path_method=wl
     ;;
     UnixWare\ 7.*|OpenUNIX\ 8.*)
@@ -43335,6 +43335,7 @@
     DYNIX/ptx*) LDSHARED="ld -G";;
     next*) LDSHARED="$REALCC $CFLAGS -nostdlib -r";;
     Linux*) LDSHARED="$REALCC -shared";;
+    GNU/kFreeBSD*) LDSHARED="$REALCC -shared";;
     GNU*) LDSHARED="ld -Bshareable";;
     FreeBSD*) LDSHARED="$REALCC -Wl,-Bshareable";;
     NetBSD*) LDSHARED="ld -Bshareable";;
@@ -44400,7 +44402,7 @@
     signal_handler="custom NT"
   ;;
 
-  xLinux)
+  xLinux|*kFreeBSD*)
     # Linux's stupid thread implementation doesn't survive USE_WAIT_THREAD.
     signal_handler="SIGCHILD"
     cat >>confdefs.h <<\_ACEOF

Reply via email to