make devel/gmp build on SecBSD
This commit is contained in:
parent
c45cdb0202
commit
7c4d4281d2
4 changed files with 181 additions and 1 deletions
|
@ -34,7 +34,7 @@ DEBUG_PACKAGES= ${BUILD_PACKAGES}
|
||||||
|
|
||||||
CONFIGURE_STYLE=gnu
|
CONFIGURE_STYLE=gnu
|
||||||
# Don't try to optimize for the local CPU submodel
|
# Don't try to optimize for the local CPU submodel
|
||||||
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-unknown-openbsd${OSrev}
|
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-unknown-secbsd${OSrev}
|
||||||
|
|
||||||
# Our vsnprintf works properly; skip test that uses %n.
|
# Our vsnprintf works properly; skip test that uses %n.
|
||||||
CONFIGURE_ENV+= gmp_cv_func_vsnprintf=yes
|
CONFIGURE_ENV+= gmp_cv_func_vsnprintf=yes
|
||||||
|
|
66
devel/gmp/patches/patch-aclocal_m4
Normal file
66
devel/gmp/patches/patch-aclocal_m4
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
Index: aclocal.m4
|
||||||
|
--- aclocal.m4.orig
|
||||||
|
+++ aclocal.m4
|
||||||
|
@@ -1560,7 +1560,7 @@ old_postuninstall_cmds=
|
||||||
|
|
||||||
|
if test -n "$RANLIB"; then
|
||||||
|
case $host_os in
|
||||||
|
- bitrig* | openbsd*)
|
||||||
|
+ bitrig* | openbsd* | secbsd*)
|
||||||
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
@@ -1728,7 +1728,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
||||||
|
lt_cv_sys_max_cmd_len=8192;
|
||||||
|
;;
|
||||||
|
|
||||||
|
- bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
|
||||||
|
+ bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd* | secbsd*)
|
||||||
|
# This has been around since 386BSD, at least. Likely further.
|
||||||
|
if test -x /sbin/sysctl; then
|
||||||
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
||||||
|
@@ -2938,7 +2938,7 @@ newsos6)
|
||||||
|
dynamic_linker='ldqnx.so'
|
||||||
|
;;
|
||||||
|
|
||||||
|
-openbsd* | bitrig*)
|
||||||
|
+openbsd* | bitrig* | secbsd*)
|
||||||
|
version_type=sunos
|
||||||
|
sys_lib_dlsearch_path_spec=/usr/lib
|
||||||
|
need_lib_prefix=no
|
||||||
|
@@ -3578,7 +3578,7 @@ newos6*)
|
||||||
|
lt_cv_deplibs_check_method=pass_all
|
||||||
|
;;
|
||||||
|
|
||||||
|
-openbsd* | bitrig*)
|
||||||
|
+openbsd* | bitrig* | secbsd*)
|
||||||
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
|
||||||
|
else
|
||||||
|
@@ -5009,7 +5009,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
|
||||||
|
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
||||||
|
with_gnu_ld=yes
|
||||||
|
;;
|
||||||
|
- openbsd* | bitrig*)
|
||||||
|
+ openbsd* | bitrig* | secbsd*)
|
||||||
|
with_gnu_ld=no
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
@@ -5830,7 +5830,7 @@ _LT_EOF
|
||||||
|
*nto* | *qnx*)
|
||||||
|
;;
|
||||||
|
|
||||||
|
- openbsd* | bitrig*)
|
||||||
|
+ openbsd* | bitrig* | secbsd*)
|
||||||
|
if test -f /usr/libexec/ld.so; then
|
||||||
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
||||||
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
||||||
|
@@ -7118,7 +7118,7 @@ if test yes != "$_lt_caught_CXX_error"; then
|
||||||
|
_LT_TAGVAR(ld_shlibs, $1)=yes
|
||||||
|
;;
|
||||||
|
|
||||||
|
- openbsd* | bitrig*)
|
||||||
|
+ openbsd* | bitrig* | secbsd*)
|
||||||
|
if test -f /usr/libexec/ld.so; then
|
||||||
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
||||||
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
84
devel/gmp/patches/patch-configure
Normal file
84
devel/gmp/patches/patch-configure
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
Index: configure
|
||||||
|
--- configure.orig
|
||||||
|
+++ configure
|
||||||
|
@@ -12664,7 +12664,7 @@ else
|
||||||
|
lt_cv_sys_max_cmd_len=8192;
|
||||||
|
;;
|
||||||
|
|
||||||
|
- bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
|
||||||
|
+ bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd* | secbsd*)
|
||||||
|
# This has been around since 386BSD, at least. Likely further.
|
||||||
|
if test -x /sbin/sysctl; then
|
||||||
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
||||||
|
@@ -13148,7 +13148,7 @@ newos6*)
|
||||||
|
lt_cv_deplibs_check_method=pass_all
|
||||||
|
;;
|
||||||
|
|
||||||
|
-openbsd* | bitrig*)
|
||||||
|
+openbsd* | bitrig* | secbsd*)
|
||||||
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
||||||
|
else
|
||||||
|
@@ -13764,7 +13764,7 @@ old_postuninstall_cmds=
|
||||||
|
|
||||||
|
if test -n "$RANLIB"; then
|
||||||
|
case $host_os in
|
||||||
|
- bitrig* | openbsd*)
|
||||||
|
+ bitrig* | openbsd* | secbsd*)
|
||||||
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
@@ -16683,7 +16683,7 @@ $as_echo_n "checking whether the $compiler linker ($LD
|
||||||
|
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
||||||
|
with_gnu_ld=yes
|
||||||
|
;;
|
||||||
|
- openbsd* | bitrig*)
|
||||||
|
+ openbsd* | bitrig* | secbsd*)
|
||||||
|
with_gnu_ld=no
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
@@ -17653,7 +17653,7 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
||||||
|
*nto* | *qnx*)
|
||||||
|
;;
|
||||||
|
|
||||||
|
- openbsd* | bitrig*)
|
||||||
|
+ openbsd* | bitrig* | secbsd*)
|
||||||
|
if test -f /usr/libexec/ld.so; then
|
||||||
|
hardcode_direct=yes
|
||||||
|
hardcode_shlibpath_var=no
|
||||||
|
@@ -18783,7 +18783,7 @@ newsos6)
|
||||||
|
dynamic_linker='ldqnx.so'
|
||||||
|
;;
|
||||||
|
|
||||||
|
-openbsd* | bitrig*)
|
||||||
|
+openbsd* | bitrig* | secbsd*)
|
||||||
|
version_type=sunos
|
||||||
|
sys_lib_dlsearch_path_spec=/usr/lib
|
||||||
|
need_lib_prefix=no
|
||||||
|
@@ -20941,7 +20941,7 @@ fi
|
||||||
|
ld_shlibs_CXX=yes
|
||||||
|
;;
|
||||||
|
|
||||||
|
- openbsd* | bitrig*)
|
||||||
|
+ openbsd* | bitrig* | secbsd*)
|
||||||
|
if test -f /usr/libexec/ld.so; then
|
||||||
|
hardcode_direct_CXX=yes
|
||||||
|
hardcode_shlibpath_var_CXX=no
|
||||||
|
@@ -22745,7 +22745,7 @@ newsos6)
|
||||||
|
dynamic_linker='ldqnx.so'
|
||||||
|
;;
|
||||||
|
|
||||||
|
-openbsd* | bitrig*)
|
||||||
|
+openbsd* | bitrig* | secbsd*)
|
||||||
|
version_type=sunos
|
||||||
|
sys_lib_dlsearch_path_spec=/usr/lib
|
||||||
|
need_lib_prefix=no
|
||||||
|
@@ -27227,7 +27227,7 @@ echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpcon
|
||||||
|
|
||||||
|
echo "include_mpn(\`x86_64/dos64.m4')" >> $gmp_tmpconfigm4i
|
||||||
|
;;
|
||||||
|
- *-openbsd*)
|
||||||
|
+ *-openbsd* | *-secbsd*)
|
||||||
|
|
||||||
|
echo "define(<OPENBSD>,1)" >> $gmp_tmpconfigm4
|
||||||
|
;;
|
30
devel/gmp/patches/patch-ltmain_sh
Normal file
30
devel/gmp/patches/patch-ltmain_sh
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
Index: ltmain.sh
|
||||||
|
--- ltmain.sh.orig
|
||||||
|
+++ ltmain.sh
|
||||||
|
@@ -7019,7 +7019,7 @@ func_mode_link ()
|
||||||
|
# These systems don't actually have a C library (as such)
|
||||||
|
test X-lc = "X$arg" && continue
|
||||||
|
;;
|
||||||
|
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
|
||||||
|
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-secbsd*)
|
||||||
|
# Do not include libc due to us having libc/libc_r.
|
||||||
|
test X-lc = "X$arg" && continue
|
||||||
|
;;
|
||||||
|
@@ -7039,7 +7039,7 @@ func_mode_link ()
|
||||||
|
esac
|
||||||
|
elif test X-lc_r = "X$arg"; then
|
||||||
|
case $host in
|
||||||
|
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
|
||||||
|
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-secbsd*)
|
||||||
|
# Do not include libc_r directly, use -pthread flag.
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
@@ -9122,7 +9122,7 @@ func_mode_link ()
|
||||||
|
*-*-netbsd*)
|
||||||
|
# Don't link with libc until the a.out ld.so is fixed.
|
||||||
|
;;
|
||||||
|
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
|
||||||
|
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-secbsd*)
|
||||||
|
# Do not include libc due to us having libc/libc_r.
|
||||||
|
;;
|
||||||
|
*-*-sco3.2v5* | *-*-sco5v6*)
|
Loading…
Add table
Add a link
Reference in a new issue