freebsd-games: hack needs -fwritable-strings

Kris Kennaway kris at FreeBSD.org
Thu Jan 10 14:10:09 PST 2008


Robert Huff wrote:
> James Cook writes:
> 
>>  This seems to be caused by line 170 of hack.u_init.c, which
>>  attempts to modify a string constant.
>>  
>>  SOLUTION:
>>  Add -fwritable-strings to CFLAGS in hack's Makefile.  (There's
>>  already a patch that changes that line of the Makefile, so this
>>  is easy to change.)
> 
> 	Has something changed in the definition of correctly written
> code while I was away at the funny farm?  Why is the solution not
> "Don't modify a costant."? 

This code has been largely untouched since the 1980s :)

Kris


More information about the freebsd-ports mailing list