From mboxrd@z Thu Jan 1 00:00:00 1970 From: skip.tavakkolian@gmail.com (Skip Tavakkolian) Date: Wed, 12 Oct 2011 00:05:24 -0700 Subject: [9fans] OSX lion + libthread In-Reply-To: <7402F5C3-D7CA-449E-B33B-75A0DFF4BA23@monkey.org> References: <7402F5C3-D7CA-449E-B33B-75A0DFF4BA23@monkey.org> Message-ID: Topicbox-Message-UUID: 36d97842-ead7-11e9-9d60-3106f5b1d025 that seems to do the trick; i've tried 9term, acme, sam and all seem to work. disabling the -O2 and following Andrey's instructions from Sept. 6th results in a successful build. anyone has an educated guess which of the optimizations under -O2 (below) is the culprit? http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options -Skip On Tue, Oct 11, 2011 at 11:06 PM, marius a. eriksen wrote: > i never could get libthreaded applications to run properly in OSX Lion. > > i've tried with both XCode 4.1 and 4.2. > > however, disabling -O2 seems to do the trick. go figure. haven't tried that on XCode 4.1-- but would be curious to hear results. > > marius. > > ? > > diff -r 8735d7708a1b bin/9c > --- a/bin/9c ? ?Tue Oct 11 09:34:25 2011 -0400 > +++ b/bin/9c ? ?Tue Oct 11 23:04:58 2011 -0700 > @@ -5,7 +5,6 @@ > ?{ > ? ? ? ?cc=${CC9:-gcc} > ? ? ? ?ngflags=" \ > - ? ? ? ? ? ? ? -O2 \ > ? ? ? ? ? ? ? ?-c \ > ? ? ? ? ? ? ? ?-Wall \ > ? ? ? ? ? ? ? ?-Wno-parentheses \ > > > > >