ports/lang/bootgcc/patches/patch-libstdc++-v3_configure

32 lines
1.2 KiB
Text

*-openbsd* required for cross compiling libstdc++
Index: libstdc++-v3/configure
--- libstdc++-v3/configure.orig
+++ libstdc++-v3/configure
@@ -11217,7 +11217,7 @@ openbsd*)
*) need_version=no ;;
esac
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
case $host_os in
@@ -14901,7 +14901,7 @@ openbsd*)
*) need_version=no ;;
esac
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
case $host_os in
@@ -66365,7 +66365,7 @@ fi
done
;;
- *-netbsd*)
+ *-netbsd*|*-openbsd*)
SECTION_FLAGS='-ffunction-sections -fdata-sections'