0

I need to compile libpq with 10.5 for using later in the simulator.

I can use the libpq in the device without problems.

I'm forcing with this:

make clean && ./configure CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk" && make -C src/interfaces/libpq

but I'm getting the error:

ld: library not found for - 

This library doesn't exist in the MacOSX10.5 folder, well, it doesn't exist in my entire hard drive.

thanks,

m.

OS X 10.6.2
XCode 3.2.1 64 bits
mongeta
  • 2,301
  • 2
  • 32
  • 42

2 Answers2

0

ok, now it works:

 -mmacosx-version-min=10.5

make clean && ./configure CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" && make -C src/interfaces/libpq
mongeta
  • 2,301
  • 2
  • 32
  • 42
0

Here is a link to a question I asked while back that might be nice to have as part of this question.

Connect iPhone App to PostgreSQL Using Libpq

Also a link that had the info I used to figure out how to do it.

http://cocoawithlove.com/2009/09/building-for-earlier-os-versions-in.html

Community
  • 1
  • 1
Kuberchaun
  • 29,160
  • 7
  • 51
  • 59