Cross Compiling 10.2 from 10.3 using a Makefile ???
Cross Compiling 10.2 from 10.3 using a Makefile ???
- Subject: Cross Compiling 10.2 from 10.3 using a Makefile ???
- From: "Steven M.Palm" <email@hidden>
- Date: Tue, 28 Oct 2003 10:27:04 -0600
Hi all,
This really may be more appropriate for another list. If so, please
point me to that list and I'll ask there.
I am building an application using Makefiles... It's something I'm
bringing over from a Linux/Windows tree, so I want to keep it as close
to the original as possible so integration of the changes are possible.
I've figured out how to build a bundle/etc from the Makefile, that's no
problem. However, the code I'm building does not work on Jaguar when
linked on a Panther system due to system library changes.
I know that on Pather there are stubs for the older MacOS systems, so I
thought I could do something like this, but it doesn't seem to work
quite right:
#
# Use this for MacOSX 10.2.x cross developed on 10.3
#
MACOSLIBDIR=-L..
-F/Developer/SDKs/MacOSX10.2.7.sdk/System/Library/Frameworks
-L/Developer/SDKs/MacOSX10.2.7.sdk/usr/lib
MACOSINCDIR=-I/Developer/SDKs/MacOSX10.2.7.sdk/Developer/Headers/
FlatCarbon -I/Developer/SDKs/MacOSX10.2.7.sdk/usr/include/openssl
-I/Developer/SDKs/MacOSX10.2.7.sdk/usr/include
MACOSDEFS=-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_2
-DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_2
MACOSLDFLAGS=-bind_at_load -undefined suppress -flat_namespace
and then the usual:
LIBS=-framework Carbon -framework System
LDFLAGS=$(MACOSLDFLAGS)
CXXFLAGS = -O0 -g3 -Wall $(MACOSINCDIR) $(MACOSDEFS)
LDLIBS = $(MACOSLIBDIR) $(LIBS)
Anyone have any hints/suggestions? Anyone care to tell me where to go
that's more appropriate to ask this?
-. ----. -.-- - -.--
Steve Palm - email@hidden
-. ----. -.-- - -.--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.