Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : PHP 5.3 with pdo_odbc & odbc

2


Threaded Mode | Print  

PHP 5.3 with pdo_odbc & odbc
FryShadow
Group: Member
Post Group: Newbie
Posts: 11
Status:
Hi,

Seems like need to build the .so with i386 since :

Code
$ file /Applications/AMPPS/php/bin/php
/Applications/AMPPS/php/bin/php: Mach-O executable i386


Correct if I'm wrong
IP: --   

PHP 5.3 with pdo_odbc & odbc
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

Right. Was about to say that. :)

Try CFLAGS="-m32" or CFLAGS="-arch i386". Before that configure command.

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

PHP 5.3 with pdo_odbc & odbc
FryShadow
Group: Member
Post Group: Newbie
Posts: 11
Status:
Hi,

I've already set the env to i386, but still produce x86_64 .so file.

Code
MACOSX_DEPLOYMENT_TARGET=10.7
CFLAGS="-arch i386 -g -Os -pipe -no-cpp-precomp"
CCFLAGS="-arch i386 -g -Os -pipe"
CXXFLAGS="-arch i386 -g -Os -pipe"
LDFLAGS="-arch i386 -bind_at_load"
export CFLAGS CXXFLAGS LDFLAGS CCFLAGS MACOSX_DEPLOYMENT_TARGET


Anyone have experience with os x 10.7.4 ?
IP: --   

« Previous    Next »

Threaded Mode | Print  

2


Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 25, 2024, 6:03 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.144