Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6366863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:28:35+00:00 2026-05-25T00:28:35+00:00

I am trying to compile python 32 bit on OSX. In order to do

  • 0

I am trying to compile python 32 bit on OSX. In order to do so, I want to specify -m32, so I dutifully specified

CFLAGS='-m32' LDFLAGS='-m32' ./configure

The configure executes correctly, but when I invoke make, the gcc execution has no trace of the -m32 flag. In order to have it, I had to do a more aggressive approach:

CFLAGS='-m32' LDFLAGS='-m32' CC='gcc -m32' ./configure

I don’t really understand why the CFLAGS I specify are not passed (the LDFLAGS are. I find LDFLAG=-m32 in the Makefile). Is it an error of the configure script, or am I doing this wrong ?

I’m using python 2.6.0 (don’t ask)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:28:36+00:00Added an answer on May 25, 2026 at 12:28 am

    Ok, I can reproduce that with Python-2.6. That seems to be a bug in that version, and is fixed in a newer one.

    Still, I can tell you that it is common for various packages to override or filter CFLAGS of values considered unsafe and so on. This often covers -m32 as well.

    Moreover, many packages simply ignore LDFLAGS (which is an error indeed). Thus, for the particular case of building 32-bit package versions, it is common to override CC like you did and leave CFLAGS and LDFLAGS alone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compile Python 2.6 for 64bit, I tried various compile commands but
I'm trying to compile my python script into a single .exe using gui2exe (which
I'm trying to compile a Python binding, but I'm unable to find the python.h
While trying to compile a 64 bit linux kernel using gcc, I see the
I was trying to PCM sound a little bit in Python, but all the
I'm trying to compile pymssql for python 2.5. I'm doing this because I think
I'm trying to compile to an exe my script of python, but I'm getting
I have been having a terrible time trying to compile a python extension -
I'm just trying to compile the hello world example of boost.python WITHOUT using all
I'm trying to compile python source code foo.py to C using cython . In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.