Package: regina-rexx
Version: 3.5-2
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd


Hi,

the current version fails to build on kfreebsd-amd64.
Please apply attached patch.

It would also be nice if you can ask upstream
to include similar change.

Thanks in advance

                        Petr
--- regina-rexx-3.5.orig/common/inclibarch.m4
+++ regina-rexx-3.5/common/inclibarch.m4
@@ -35,7 +35,7 @@ case "$target" in
       ;;
    sparc*sunos*)
       ;;
-   *linux*)
+   *linux*|*kfreebsd*-gnu*)
       mach="`uname -m`"
       if test "$mach" = "x86_64" -o "$mach" = "ia86" -o "$mach" = "alpha" -o "$mach" = "ppc64"; then
          bitflag="64"
--- regina-rexx-3.5.orig/configure
+++ regina-rexx-3.5/configure
@@ -3164,7 +3164,7 @@ case "$target" in
       ;;
    sparc*sunos*)
       ;;
-   *linux*)
+   *linux*|*kfreebsd*-gnu*)
       mach="`uname -m`"
       if test "$mach" = "x86_64" -o "$mach" = "ia86" -o "$mach" = "alpha" -o "$mach" = "ppc64"; then
          bitflag="64"
@@ -9741,7 +9741,7 @@ case "$target" in
                 SHLPRE="lib"
                 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
                 ;;
-        *freebsd* | *openbsd*)
+        *-freebsd* | *openbsd*)
                 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
                    LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
                    LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
@@ -9758,7 +9758,7 @@ case "$target" in
                 fi
                 SHLPRE="lib"
                 ;;
-        *linux*)
+        *linux*|*kfreebsd*-gnu*)
                 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
                 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
                 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
@@ -10081,7 +10081,7 @@ case "$target" in
                 #
                 LINKREG="${LINKSHL}"
                 ;;
-        *linux*)
+        *linux*|*kfreebsd*-gnu*)
                 LINKSHL="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
                 LINKREG="${LINKSHL}"
                 ;;

Reply via email to