Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 43177 | Differences between
and this patch

Collapse All | Expand All

(-)orig/xc/config/imake/imake.c (-1 / +6 lines)
Lines 1047-1053 Link Here
1047
  if (fp == NULL) 
1047
  if (fp == NULL) 
1048
    abort();
1048
    abort();
1049
  while (fgets(buf, sizeof(buf), fp)) {
1049
  while (fgets(buf, sizeof(buf), fp)) {
1050
    if (strstr(buf, "propolice") != NULL) {
1050
    /* Modified to pick up Gentoo hardened gcc.  Not sure exactly
1051
       what "propolice" is looking for, whether it's a configure option
1052
       or the identification.  If the latter, the equivalent string
1053
       for gentoo may be "ssp" rather than "Hardened". */
1054
    if ((strstr(buf, "propolice") != NULL) ||
1055
        (strstr(buf, "Hardened") != NULL)) {
1051
      fprintf(inFile, "#define HasGccStackProtector YES\n");
1056
      fprintf(inFile, "#define HasGccStackProtector YES\n");
1052
      break;
1057
      break;
1053
    }
1058
    }
(-)orig/xc/config/cf/xf86.tmpl (-1 / +1 lines)
Lines 50-56 Link Here
50
#endif
50
#endif
51
51
52
#if HasGccStackProtector
52
#if HasGccStackProtector
53
MODULE_GCC_FLAGS1 = -fno-stack-protector
53
MODULE_GCC_FLAGS1 = -fno-stack-protector -fno-pie
54
#endif 
54
#endif 
55
55
56
#ifndef HasGccMergeConstants
56
#ifndef HasGccMergeConstants
(-)orig/xc/config/cf/xorg.tmpl (-1 / +1 lines)
Lines 64-70 Link Here
64
#endif
64
#endif
65
65
66
#if HasGccStackProtector
66
#if HasGccStackProtector
67
MODULE_GCC_FLAGS1 = -fno-stack-protector
67
MODULE_GCC_FLAGS1 = -fno-stack-protector -fno-pie
68
#endif 
68
#endif 
69
69
70
#ifndef HasGccMergeConstants
70
#ifndef HasGccMergeConstants

Return to bug 43177