Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Perkin committed Jun 26, 2015
1 parent 1dafd19 commit a2026ae
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lang/gcc47/distinfo
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SHA1 (gcc-4.7.4.tar.bz2) = f3359a157b3536f289c155363f1736a2c9b414db
RMD160 (gcc-4.7.4.tar.bz2) = d0a8e421b9c62a923f765b97828b12d5af388199
Size (gcc-4.7.4.tar.bz2) = 82935453 bytes
SHA1 (patch-configure) = 51c0978c60baddd90ef7e512445fdef913c04e6c
SHA1 (patch-gcc_Makefile.in) = a61187af64943ef38088442397fcd0f3f65fe2b5
SHA1 (patch-gcc_Makefile.in) = ab307ae9f48bd05b4fafca5c618588ef3d37408d
SHA1 (patch-gcc_caller-save.c) = 85d985d1fd9736908be6e99028aa5fe7dcadca59
SHA1 (patch-gcc_common.opt) = 0f1212c9f9ab4a73e4ac6d56ebffbb89477f1e31
SHA1 (patch-gcc_config.gcc) = efa4ecabd71bdec14d5dd1f8bb836116c7a9d6e9
Expand All @@ -18,7 +18,7 @@ SHA1 (patch-gcc_config_i386_dragonfly.h) = 0d3f785434c02beb9c4561fe59842a970e8f7
SHA1 (patch-gcc_config_i386_i386.c) = 7b452589ae5deb228236529166bf096fda40718a
SHA1 (patch-gcc_config_netbsd-stdint.h) = 025fc883101a187e84ed4c0772406720d645d550
SHA1 (patch-gcc_config_sol2.h) = 4f6ffe871840dcf7e2e469fdcc5d327b9b00f957
SHA1 (patch-gcc_configure) = a4b670d0c54c410d38715b7a2a572a7048e3ec5e
SHA1 (patch-gcc_configure) = 01464863f31087390d612023a849e9c8f626b751
SHA1 (patch-gcc_dojump.c) = 6a095ae23d0ed0469dbcf746bcbefc3f33613482
SHA1 (patch-gcc_fortran_f95-lang.c) = 6edd2adc7de0d6db36fc5670535b55f61664f5fd
SHA1 (patch-gcc_gcc.c) = d28e633c8961161562db960054aaa5aa6a1ac645
Expand Down
15 changes: 13 additions & 2 deletions lang/gcc47/patches/patch-gcc_Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@ are found.

NOTE: the %M spec string is added by patch-gcc_gcc.c

--- gcc/Makefile.in.orig 2012-03-07 10:59:56.000000000 +0000
Disable fixincludes, as per joyent/pkgsrc#270

--- gcc/Makefile.in.orig 2013-07-08 09:15:35.000000000 +0000
+++ gcc/Makefile.in
@@ -2074,6 +2074,7 @@ prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_
@@ -2090,6 +2090,7 @@ prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_
# Language-independent files.

DRIVER_DEFINES = \
+ -DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG)$(prefix)/@GCC_TARGET_MACHINE@/lib/%M $(LINKER_RPATH_FLAG)$(libdir)/%M \"" \
-DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
-DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
-DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \
@@ -4204,7 +4205,7 @@ stmp-fixinc: gsyslimits.h macro_list fix
gcc_dir=`${PWD_COMMAND}` ; \
export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
cd $(build_objdir)/fixincludes && \
- $(SHELL) ./fixinc.sh "$${gcc_dir}/$${fix_dir}" \
+ $(SHELL) -c true "$${gcc_dir}/$${fix_dir}" \
$(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS) ); \
rm -f $${fix_dir}/syslimits.h; \
if [ -f $${fix_dir}/limits.h ]; then \
15 changes: 13 additions & 2 deletions lang/gcc47/patches/patch-gcc_configure
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@ Add dl_iterate_phdr detection for FreeBSD and DragonFly.
Detection for NetBSD and OpenBSD is added but commented out in case this
error handling mechanism is activated for these platforms later.

--- gcc/configure.orig 2012-03-08 13:54:54.000000000 +0000
Fix detection of native TLS on SunOS, joyent/pkgsrc#264

--- gcc/configure.orig 2014-02-12 16:43:47.000000000 +0000
+++ gcc/configure
@@ -26802,6 +26802,20 @@ case "$target" in
@@ -23374,7 +23374,7 @@ $as_echo "#define TLS_SECTION_ASM_FLAG '
.section ".tdata","awT",@progbits'
tls_first_major=2
tls_first_minor=14
- tls_as_opt="--fatal-warnings"
+ tls_as_opt="-32 --fatal-warnings"
fi
conftest_s="$conftest_s
foo: .long 25
@@ -26906,6 +26906,20 @@ case "$target" in
gcc_cv_target_dl_iterate_phdr=no
fi
;;
Expand Down

0 comments on commit a2026ae

Please sign in to comment.