mirror of
https://git.freebsd.org/ports.git
synced 2025-05-12 23:31:50 -04:00
lang/gcc12: Fix segfaults for static binaries
Fix segmentation faults caused by -static flag into compiled binaries. Email thread: https://lists.freebsd.org/archives/freebsd-hackers/2025-January/004236.html Upstream bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118685 PR: 284441 Reported by: kargl
This commit is contained in:
parent
35024285a5
commit
6f5f51aaee
2 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= gcc
|
||||
PORTVERSION= 12.4.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= GCC
|
||||
PKGNAMESUFFIX= ${SUFFIX}
|
||||
|
|
11
lang/gcc12/files/patch-libgcc-config.host
Normal file
11
lang/gcc12/files/patch-libgcc-config.host
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- libgcc/config.host.orig 2025-01-30 12:31:26.479569000 -0800
|
||||
+++ libgcc/config.host 2025-01-30 12:32:03.732682000 -0800
|
||||
@@ -286,7 +286,7 @@
|
||||
# machine-specific sections may refine and add to this
|
||||
# configuration.
|
||||
tmake_file="$tmake_file t-freebsd t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
|
||||
- extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
|
||||
+ extra_parts="crtbegin.o crtend.o crtbeginS.o crtbeginT.o crtendS.o"
|
||||
case ${target_thread_file} in
|
||||
posix)
|
||||
tmake_file="${tmake_file} t-freebsd-thread"
|
Loading…
Add table
Reference in a new issue