head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.8 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.6 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.4 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.2 pkgsrc-2025Q2-base:1.2; locks; strict; comment @# @; 1.2 date 2025.06.11.13.27.05; author dkazankov; state Exp; branches; next 1.1; commitid joH59RK5E27zytYF; 1.1 date 2025.04.25.19.35.10; author dkazankov; state Exp; branches; next ; commitid UNL0eZmaL4DA6tSF; desc @@ 1.2 log @gcc14-gnat*: update to 14.3 bug-fix release @ text @$NetBSD: patch-gcc_configure,v 1.2 2025/06/08 07:37:45 wiz Exp $ Support Darwin/aarch64, from https://github.com/Homebrew/formula-patches. --- gcc/configure.orig 2025-05-23 11:02:04.504200864 +0000 +++ gcc/configure @@@@ -740,6 +740,8 @@@@ ORIGINAL_NM_FOR_TARGET gcc_cv_nm ORIGINAL_LD_GOLD_FOR_TARGET ORIGINAL_LD_BFD_FOR_TARGET +ORIGINAL_CLASSIC_LD_FOR_TARGET +ORIGINAL_LLD_FOR_TARGET ORIGINAL_LD_FOR_TARGET ORIGINAL_PLUGIN_LD_FOR_TARGET gcc_cv_ld @@@@ -3803,20 +3805,19 @@@@ gcc_gxx_libcxx_include_dir= # Check whether --with-gxx-libcxx-include-dir was given. if test "${with_gxx_libcxx_include_dir+set}" = set; then : - withval=$with_gxx_libcxx_include_dir; case "${withval}" in -yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;; -*) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;; -esac + withval=$with_gxx_libcxx_include_dir; gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir fi # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option. # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option. +# if --with-gxx-libcxx-include-dir is 'yes' we enable the stdlib option and use +# the default path within the installation. # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option -# based on the platform (to be available on platform versions where it is the +# based on the platform (to be available on platform versions where it is the # default for the system tools). We also use a default path within the compiler -# install tree. -# Otherwise, we use the path provided and enable the stdlib option. +# install tree. +# Otherwise, we use the path provided and enable the stdlib option. # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we # check to see if the latter starts with the former and, upon success, compute # gcc_gxx_libcxx_include_dir as relative to the sysroot. @@@@ -3824,16 +3825,20 @@@@ gcc_gxx_libcxx_include_dir_add_sysroot=0 gcc_enable_stdlib_opt=0 if test x${gcc_gxx_libcxx_include_dir} != x; then if test x${gcc_gxx_libcxx_include_dir} = xno; then - # set defaults for the dir, but the option is disabled anyway. + # set defaults for the dir, but the option is disabled anyway. + gcc_gxx_libcxx_include_dir= + elif test x${gcc_gxx_libcxx_include_dir} = xyes; then + # set defaults for the dir, and enable. gcc_gxx_libcxx_include_dir= + gcc_enable_stdlib_opt=1 else gcc_enable_stdlib_opt=1 fi else case $target in *-darwin1[1-9]* | *-darwin2*) - # Default this on for Darwin versions which default to libcxx, - # and embed the path in the compiler install so that we get a + # Default this on for Darwin versions which default to libcxx, + # and embed the path in the compiler install so that we get a # self-contained toolchain. gcc_enable_stdlib_opt=1 ;; @@@@ -25342,6 +25347,14 @@@@ fi $as_echo "$gold_non_default" >&6; } ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld +if test x"$ld64_flag" = x"yes"; then +ORIGINAL_LLD_FOR_TARGET=${gcc_cv_ld}64.lld +else +ORIGINAL_LLD_FOR_TARGET=$gcc_cv_lld +fi +ORIGINAL_CLASSIC_LD_FOR_TARGET=$gcc_cv_ld-classic + + case "$ORIGINAL_LD_FOR_TARGET" in ./collect-ld | ./collect-ld$build_exeext) ;; @ 1.1 log @lang/gcc14-gnat*: add new packages for GCC GNAT 14 @ text @d1 1 a1 1 $NetBSD: patch-gcc_configure,v 1.1 2025/02/09 20:00:00 dkazankov Exp $ a3 1 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90143 d5 1 a5 1 --- gcc/configure.orig 2024-08-01 08:18:42.000000000 +0000 d7 1 a7 1 @@@@ -740,6 +740,8 @@@@ d16 1 a16 1 @@@@ -3803,20 +3805,19 @@@@ d43 1 a43 1 @@@@ -3824,16 +3825,20 @@@@ d67 1 a67 19 @@@@ -21575,7 +21580,7 @@@@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 21578 "configure" +#line 21583 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@@@ -21681,7 +21686,7 @@@@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 21684 "configure" +#line 21689 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@@@ -25306,6 +25311,14 @@@@ a81 9 @@@@ -33642,7 +33655,7 @@@@ gcc_cv_target_dl_iterate_phdr=no fi ;; - *-*-dragonfly* | *-*-freebsd*) + *-*-dragonfly* | *-*-freebsd* | *-*-netbsd*) if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then gcc_cv_target_dl_iterate_phdr=yes else @