Talk:How to use pkgsrc on Mac OS X

From NetBSD Wiki

Jump to: navigation, search

using pkgsrc on OS X 10.5.2 with xcode 3.0 i found following mk.conf settings helpful for compiling things. CFLAGS = -Wall -fno-strict-aliasing -g -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 LDFLAGS = -arch i386

This was done on intel arch macbook -isysroot option seems to be important because with out it tries to use 10.4 sdk as default.

Actually i went so far and reinstalled pkgsrc and all packages. I also gave those CFLAGS and LDFLAGS to bootstrap process to avoid any errors caused by compiling against wrong sdk on my system.

Personal tools