diff options
author | Cristian Moldovan <cristian@crismblog.ro> | 2015-06-19 09:18:30 +0300 |
---|---|---|
committer | Cristian Moldovan <cristian@crismblog.ro> | 2015-06-19 09:18:30 +0300 |
commit | b81de13a45795842f4d296c2dfff6aab2a9dd97e (patch) | |
tree | 039b13059e556a8a7461281b623c903c616318d5 /sys-devel/gcc/files/gcc-4.6.4-spec-env.patch | |
parent | 975d01bc65f0f9190808c0d3cddf3131a790a8f6 (diff) | |
parent | 4772dd84c7144b95c0489f25f669006726af8cfe (diff) |
Merge pull request #1 from Rogentos/master
Database Update
Diffstat (limited to 'sys-devel/gcc/files/gcc-4.6.4-spec-env.patch')
-rw-r--r-- | sys-devel/gcc/files/gcc-4.6.4-spec-env.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/sys-devel/gcc/files/gcc-4.6.4-spec-env.patch b/sys-devel/gcc/files/gcc-4.6.4-spec-env.patch deleted file mode 100644 index fff1221e..00000000 --- a/sys-devel/gcc/files/gcc-4.6.4-spec-env.patch +++ /dev/null @@ -1,43 +0,0 @@ - Add support for external spec file via the GCC_SPECS env var. This - allows us to easily control pie/ssp defaults with gcc-config profiles. - - Original patch by Rob Holland - Modified for Gentoo-based distros 'cuz of archive name by Stefan Cristian B. - Extended to support multiple entries separated by ':' by Kevin F. Quinn - Modified to use getenv instead of poisoned GET_ENVIRONMENT by Ryan Hill - ---- gcc-4.6.4/gcc/gcc.c -+++ gcc-4.6.4/gcc/gcc.c -@@ -6482,6 +6482,32 @@ - - /* Process any user specified specs in the order given on the command - line. */ -+#if !(defined (__MSDOS__) || defined (OS2) || defined (VMS) || defined (WIN32)) -+ /* Add specs listed in GCC_SPECS. Note; in the process of separating -+ * each spec listed, the string is overwritten at token boundaries -+ * (':') with '\0', an effect of strtok_r(). -+ */ -+ specs_file = getenv ("GCC_SPECS"); -+ if (specs_file && (strlen(specs_file) > 0)) -+ { -+ char *spec, *saveptr; -+ for (spec=strtok_r(specs_file,":",&saveptr); -+ spec!=NULL; -+ spec=strtok_r(NULL,":",&saveptr)) -+ { -+ struct user_specs *user = (struct user_specs *) -+ xmalloc (sizeof (struct user_specs)); -+ -+ user->next = (struct user_specs *) 0; -+ user->filename = spec; -+ if (user_specs_tail) -+ user_specs_tail->next = user; -+ else -+ user_specs_head = user; -+ user_specs_tail = user; -+ } -+ } -+#endif - for (uptr = user_specs_head; uptr; uptr = uptr->next) - { - char *filename = find_a_file (&startfile_prefixes, uptr->filename, |