Hello!
You have to build a bundle.

Example:
    if env['PLATFORM']=="darwin":
        pypb=env.LoadableModule('Singular/polybori_module',
wrapper_files,
            LINKFLAGS="-bundle_loader " + SINGULAR_HOME+"Singular/
Singular",
            LIBS=LIBS,LDMODULESUFFIX=".so",
            CPPPATH=SING_INCLUDES+CPPPATH)

Best regards,
Michael

On 24 Aug., 11:25, "Joel B. Mohler" <[EMAIL PROTECTED]> wrote:
> Hi (This is cross-posted to sage-devel and scons-users),
>
> I'm converting one small part of the build process of SAGE
> (http://www.sagemath.com) to use SCons, but I'm getting a strange link error
> with the SharedLibrary I'm attempting to create on mac OS X.  It works fine
> on my linux machine (and we don't support native windows).
>
> The command and error is:
> ******************
> g++ -o libcsage.dylib -dynamiclib interrupt.os mpn_pylong.os
> mpz_pylong.os stdsage.os ZZ_pylong.os ntl_wrap.os -L/sage/local/lib -
> lntl -lgmp
> ld: common symbols not allowed with MH_DYLIB output format with the -
> multi_module option
> interrupt.os definition of common __signals (size 784)
> stdsage.os definition of common _global_empty_tuple (size 4)
> /usr/bin/libtool: internal link edit command failed
> ******************
>
> The SConstruct is shown here:  
> http://sage.math.washington.edu/home/jbmohler/SConstruct
>
> I'm not a mac person myself and don't have a mac available to play on so I
> can't easily experiment with linker options, but I'm sure there are people on
> this list who know way more about the mac linker than I do.  The person I've
> been corresponding with who has SAGE on the mac has indicated that
> using '-fno_common' and '-single_module' make a difference but produce other
> problems (I got those options from google and our old auto* command lines).
>
> Can anyone clue me in on what linker options to use for the mac?
>
> Thanks
> Joel


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to