[PATCH] Avoid -lm and -lpthread in libjava on darwin

Mike Stump mikestump@comcast.net
Thu Aug 12 22:33:00 GMT 2010


On Aug 12, 2010, at 4:19 AM, Jack Howarth wrote:
> Okay for gcc trunk and gcc 4.5.2?

I'm not sure if the java people want review this, a build maintainer or me, as darwin maintainer...  So, to break the deadlock, I'll approve this for tuesday next week unless someone speaks up by then.

I'm curious about older systems (darwin8 or darwin9), I don't recall how far back one had to go to have a real libm, but I think this might break those systems.  I don't know if we care (10.2 for example, I'm not sure I'm gonna worry about it).

I'm curious, the simpler:

 %<S    remove all occurrences of -S from the command line.                           
        Note - this command is position dependent.  % commands in the                 
        spec string before this one will see -S, % commands in the                    
        spec string after this one will not.                                          
 %<S*   remove all occurrences of all switches beginning with -S from the             
        command line.


seems like it could be used.  Can that be made to work?  If so and it's simpler, let's use that.  If not, well, it was just an idea.



More information about the Gcc-patches mailing list