Changes between Version 1 and Version 2 of Ticket #55493, comment 14


Ignore:
Timestamp:
Jul 12, 2018, 2:19:15 PM (6 years ago)
Author:
othermark (othermark)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55493, comment 14

    v1 v2  
    22
    33What does fix this problem is changing -Os in cflags to -O0.   Tested -O2 and -O1 as well, and only -O0 avoids the trap.   It's probably a specific optimization that needs disabled, for both this and mawk in ticket 55204.   Note it takes both _FORTIFY_SOURCE=0 and -O0 to avoid the trap.    Just the telnet bin needs -O0, but the rest of the source also needs _FORTIFY_SOURCE=0.
     4
     5Added the following to Portfile and it works just fine.
     6{{{
     7configure.optflags -O0
     8configure.cflags-append -D_FORTIFY_SOURCE=0
     9}}}