Custom CFLAGS with distutils

R

Rocco Rutte

Hi,

I've been trying to make distutils build mercurial with custom cflags.
The only way this works is to change Makefile because I don't want to
put my changed CFLAGS into the environment and I tend to forget to run
"make" with a CFLAGS=... option.

Google brings up a special "Setup" file which should solve my problem,
but it somehow doesn't. I've tried:

mercurial mercurial/base85.c -Xcompiler -arch x86_64
mercurial.base85 mercurial/base85.c -Xcompiler -arch x86_64

for base85.c in the mercurial/ subdirectory. Hacking Makefile does the
trick, but having a Setup file working would never produce merge
conflicts.

What am I doing wrong?

Rocco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,655
Latest member
eizareri

Latest Threads

Top