Search Postgresql Archives

Re: postgresql and Mac OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Allison wrote:

It confirms what I'm working through.

crt1.o located at /Developer/SDKs/MacOSX10.5.sdk/usr/lib/crt1.o
crt1.10.5.0 at /Developer/SDKs/MacOSX10.5.sdk/usr/lib/crt1.10.5.o

So I'm trying to find how to get these directories included in the compilation. I thought --with-libs and/or --with-includes would have helped. But it didn't.

This is what I ran (I'm running this from a script so I can repeat it)


--------------------------------------
cd /Users/tom/src/postgresql-8.3.4

export PATH=$PATH:/Developer/usr/bin/

./configure \
        --with-libs=/Developer/SDKs/MacOSX10.5.sdk/usr/lib/ \
        --with-includes=/Developer/SDKs/MacOSX10.5.sdk/usr/lib/



But I'm on the same error...


crt1.o is located in usr/lib of the SDK's as far back as 10.1
a clean 10.3 has it at /usr/lib
but a clean 10.5 doesn't
- that's clean as in without dev tools
10.4 with dev tools has a copy at /usr/lib

As others have suggested ensure that the full dev tools are installed into /usr/bin and so on. And leave the /Developer/usr... stuff for Apples binaries to use as they have been made to.




If you want to use the SDK's to build a binary for a system version other than the one you are building on then what you are looking for is SDKROOT (use export or setenv - not as a configure option)

From Xcode tips (under Build Locations - SDK Path)-
The location of the SDK being used during the build. The product will built against the headers and libraries located inside the indicated SDK. This path will be prepended to all search paths, and will be passed through the environment to the compiler and linker. Normally, this path is set at the project level via the "Cross-Develop Using Target SDK" popup in the General tab of the project inspector. [SDKROOT]


NOTE - This is an Apple GCC extension - I don't think it has made it into the general GCC release.


--

Shane Ambler
pgSQL (at) Sheeky (dot) Biz

Get Sheeky @ http://Sheeky.Biz

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux