Hi Martin,

> Let me know if should link libz statically with loader for aix. It
> should be trivial to make such changes to wscript.

Funny that this first struck me 3 years later. :-)

I have been trying to modify wscript like this:

        if sys.platform.startswith('freebsd'):
            ...
        elif sys.platform.startswith('aix'):
            libs = ['dl', 'm']
            staticlibs = ['z']
        else:
            libs = ['dl', 'z', 'm']  # 'z' - zlib, 'm' - math,

        for key, value in targets.items():
            bld(
                features = 'cc cprogram',
                source = bld.path.ant_glob('linux/*.c common/*.c'),
                target = value,
                install_path = install_path,
                lib = libs,
                staticlib = staticlibs,   *<========== NEW LINE*
                env = bld.env_of_name(key).copy(),
                includes = ['common', 'linux'],
            )

However, unfortunately it does not provide the correct GCC options:

/usr/bin/gcc debugw/linux/getpath_4.o ...  -o 
.../bootloader/build/debugw/runw_d -Wl,-brtl -Wl,-Bstatic -lz -ldl -lm

This gives me this line:

ld: 0706-027 The -B static flag is ignored.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to