Hi Brad,
Is this still being planned?
thanks
John
On 2020-09-12 19:01, Brad Smith wrote:
> On Wed, Sep 09, 2020 at 11:42:27AM -0700, j@bitminer.ca wrote:
>> As recommended by Brad, I've updated the fixes
>> for all necessary platforms so that -static
>> works.
>>
>> Some platforms already had something like this so this
>> set of patches is for a subset of all platforms.
>>
>> Only tested on amd64.
>>
>> John
>
> I had a similar diff as to yours. I also added keeping the PowerPC
> config in sync
> which I noticed had not been kept in sync with the rest.
>
> I was just waiting for George to do some testing on PowerPC.
>
>
> Index: Makefile
> ===================================================================
> RCS file: /home/cvs/ports/lang/gcc/8/Makefile,v
> retrieving revision 1.34
> diff -u -p -u -p -r1.34 Makefile
> --- Makefile 4 Sep 2020 09:55:34 -0000 1.34
> +++ Makefile 13 Sep 2020 00:55:40 -0000
> @@ -18,6 +18,7 @@ DPB_PROPERTIES = parallel
> V = 8.4.0
> FULL_VERSION = $V
> FULL_PKGVERSION = $V
> +REVISION = 0
>
> ADASTRAP-amd64 = adastrap-amd64-8.3.0-2.tar.xz
> ADASTRAP-arm = adastrap-arm-4.9.4-0.tar.xz
> Index: patches/patch-gcc_config_aarch64_openbsd_h
> ===================================================================
> RCS file:
> /home/cvs/ports/lang/gcc/8/patches/patch-gcc_config_aarch64_openbsd_h,v
> retrieving revision 1.2
> diff -u -p -u -p -r1.2 patch-gcc_config_aarch64_openbsd_h
> --- patches/patch-gcc_config_aarch64_openbsd_h 20 May 2019 14:59:05
> -0000 1.2
> +++ patches/patch-gcc_config_aarch64_openbsd_h 4 Sep 2020 20:18:32
> -0000
> @@ -57,7 +57,7 @@ Index: gcc/config/aarch64/openbsd.h
> + %{!static:-Bdynamic} \
> + %{rdynamic:-export-dynamic} \
> + %{assert*} \
> -+ %{!shared:%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}} \
> ++ %{!shared:%{!static:%{!-dynamic-linker:-dynamic-linker
> /usr/libexec/ld.so}}} \
> + -L/usr/lib"
> +
> +#define OPENBSD_ENTRY_POINT "__start"
> Index: patches/patch-gcc_config_alpha_openbsd_h
> ===================================================================
> RCS file:
> /home/cvs/ports/lang/gcc/8/patches/patch-gcc_config_alpha_openbsd_h,v
> retrieving revision 1.2
> diff -u -p -u -p -r1.2 patch-gcc_config_alpha_openbsd_h
> --- patches/patch-gcc_config_alpha_openbsd_h 20 May 2019 14:59:05
> -0000 1.2
> +++ patches/patch-gcc_config_alpha_openbsd_h 13 Sep 2020 00:52:52 -0000
> @@ -17,7 +17,7 @@ Index: gcc/config/alpha/openbsd.h
> + %{!static:-Bdynamic} \
> + %{rdynamic:-export-dynamic} \
> + %{assert*} \
> -+ %{!shared:%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}}"
> ++ %{!shared:%{!static:%{!dynamic-linker:-dynamic-linker
> /usr/libexec/ld.so}}}"
> +
> +/* As an elf system, we need crtbegin/crtend stuff. */
> +#undef STARTFILE_SPEC
> Index: patches/patch-gcc_config_arm_openbsd_h
> ===================================================================
> RCS file:
> /home/cvs/ports/lang/gcc/8/patches/patch-gcc_config_arm_openbsd_h,v
> retrieving revision 1.2
> diff -u -p -u -p -r1.2 patch-gcc_config_arm_openbsd_h
> --- patches/patch-gcc_config_arm_openbsd_h 20 May 2019 14:59:05
> -0000 1.2
> +++ patches/patch-gcc_config_arm_openbsd_h 4 Sep 2020 20:18:32 -0000
> @@ -82,7 +82,7 @@ Index: gcc/config/arm/openbsd.h
> + %{!static:-Bdynamic} \
> + %{rdynamic:-export-dynamic} \
> + %{assert*} \
> -+ %{!shared:%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}} \
> ++ %{!shared:%{!static:%{!-dynamic-linker:-dynamic-linker
> /usr/libexec/ld.so}}} \
> + %{!nostdlib:-L/usr/lib}"
> +
No comments:
Post a Comment