DIYMacServer » Apache

3 posts

64-bit Apache compilation doesn't result in an 64-bit binary

started at 01 Mar 2010
started by aurora72
last reply from richard
  • aurora72
    01 Mar 2010
    #

    Hello,
    I'm trying to compile the Apache using the guidelines in "Compiling Apache in 64 bits mode on Leopard" section of this website and using the DIYMacServer config.layout.

    But, though I apply each direction (including setting the CFLAG to "-arch x86_64"), I still cannot get a "64-bit" Apache binary but rather just a normal (32-bit) binary (as seen from the Activity Manager)

    64-bit MySQL compilation on the same machine worked out fine (i.e. mysqld shows up as 64-bit on Activity Manager)

    So I wonder what I might be missing...
    Thanks.

  • aurora72
    01 Mar 2010
    #

    Well here's the answer to my own question: How do I build apache for 64-bit server, Please suggest - hp.com

    It looks like, and I was doubting about it anyway, one more shell variable was missing: export CPPFLAGS="-arch x86_64"

    When I exported that variable before configuring Apache; the resulting binary has finally turned out 64 bits :)

    Thanks!

  • 01 Mar 2010
    #

    Sorry about this, there was a typo on the page. The CFLAG statement should have ended with an '\'. The instruction should work again, my apologies.

Reply

You must log in to post.