Andrew Hartung wrote:
[]
> Changed configure.in to:
> case $build_os in
>    Darwin*)
>      SHLIB_SUFFIX=".dylib"
>      SHLIB_LD="g++ -dynamiclib -flat_namespace -undefined suppress"
>      STRIP_FLAGS=-S
>      BUNDLE_SUFFIX=".so"
>      BUNDLE_LD="g++ -bundle -flat_namespace -undefined suppress"
> 
> and Makefile.in :
> 
> Mk4py$(BUNDLE_SUFFIX): $(PYOBJS) $(LOBJS) $(LINK_SPECIAL_FILES)
>       $(BUNDLE_LD) -o $@ $(PYOBJS) $(LOBJS) $(LINK_SPECIAL_FLAGS)
> 
> and am still receiving the metakit import error when running gourmet.

Yes, this is OK, but not yet sufficient.

> There is this in makefile.in:
> 
> Mk4py$(LIB_SUFFIX): $(PYOBJS) $(LOBJS)
>       ar cru $@ $(PYOBJS) $(LOBJS)
>       ranlib $@

Don't touch this, it won't really be used anyway.

> do I need to do something with it? also:
> 
> install-python: Mk4py$(LIBEXT)
>       $(INSTALL_PROGRAM) Mk4py$(LIBEXT) $(DESTDIR)$(pylibdir)
>       $(INSTALL_PROGRAM) $(srcdir)/../python/metakit.py $(DESTDIR)$(pylibdir)
> and
> 
> python: Makefile Mk4py$(LIBEXT)
>  
> Does BUNDLE_SUFFIX and BUNDLE_LD and replace SHLIB_SUFFIX and  
> SHLIB_LD? Is there something I need to do with (LIBEXT)?
> 
> 
> Or is this from configure.in the reason it is not a bundle, LIBEXT  
> being set to SHLIB_SUFFIX which is .dylib?
> 
> if test $SHARED_BUILD = 1; then
>    LIBEXT=$SHLIB_SUFFIX
> else
>    LIBEXT=$LIB_SUFFIX
> fi

I think you have to replace all instances of Mk4py$(LIBEXT) by 
Mk4py$(BUNDLE_SUFFIX), too. The authors of that code understand only the 
distinction between static (*.a) and dynamic (*.dylib) libraries, but 
not the notion of bundle (*.so). For the python module, one needs a 
bundle, not a static or dynamic library, so the LIBEXT with its two 
possible definitions doesn't really make sense for it.

-- 
Martin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to