building tcl with macports gcc: unrecognized option

Russell E. Owen rowen at u.washington.edu
Mon Jan 12 12:24:40 PST 2009


In article <20090110003659.GC890 at ninagal.withay.com>,
 Bryan Blackburn <blb at macports.org> wrote:

> On Fri, Jan 09, 2009 at 04:00:09PM -0800, Russell E. Owen said:
> > I'm trying to build tcl on MacOS X 10.5.6 using the macports gcc 4.3.2. 
> > I know a tcl is available from macports, but for obscure reasons I need 
> > my own non-framework version. When I do the standard:
> 
> Note that the tcl port does not install a framework, just the *nix-style
> include/lib stuff.

Yes. That is exactly what I want.

> >   ./configure
> >   make
> > I eventually get this error:
> > cc1: error: unrecognized command line option "-mdynamic-no-pic"
> > 
> > I am guessing this flag is an Apple extension that is not available in 
> > the macports compiler. Surely this must come up when the macports tcl 
> > port (and perhaps other software), yet I can't find anything about it in 
> > the tcl port file, nor anywhere else for that matter.
> 
> The vast majority of ports use the gcc which comes with Xcode, and the vast
> majority of those use gcc-4.0, so they don't have to work around such issues
> for the most part.

Oh, of course! I should have realized that.

> > Can anyone tell me how to avoid the problem?
> 
> In your case, it looks like you'll need to edit unix/configure to remove
> that flag from EXTRA_APP_CC_SWITCHES, then do the configure and make again;
> though I haven't tried it myself.

Thank you very much.

-- Russell



More information about the macports-users mailing list