linux command line question

Lex Spoon lex at cc.gatech.edu
Sun Jul 29 21:34:14 UTC 2001


Timothy Reaves <treaves at silverfields.com> wrote:
> 	Does the -xshm option need to be specified if xshm is compiled in?  Running squeak -version shows:
> i686-pc-linux-gnu 3.1a-4164 #1 XShm Fri Jul 27 10:34:57 EDT 2001 gcc 2.95.2
> Linux double 2.4.5 #4 SMP Mon Jul 9 09:57:00 EDT 2001 i686 unknown
> default plugin location: /usr/local/lib/squeak/3.1a-4164/*.so
> 
> 
> 	So must I still specify this option?
> 

You do need to specify the option.  It would seem nice if the VM
automatically tried to use XSHM, but as it is, it does not.  I think you
could simply change the initial value of useXshm to be 1...

By the way, you also need to reverse an "if" statement in the source
code, since XShmAttach breaks the usual C convention of "0" meaning
success.  Look around line 2205 of sqXWindow.c for "if (result == 0)"
and change it to "if (result)".  (This is included in the smallx.diff
patch off of my web page, but that page hasn't been updated for Ian's
new release yet).


-Lex




More information about the Squeak-dev mailing list