Re: Foundation with autoconf, automake, and libtool (RESOLVED)
Re: Foundation with autoconf, automake, and libtool (RESOLVED)
- Subject: Re: Foundation with autoconf, automake, and libtool (RESOLVED)
- From: Kyle Moffett <email@hidden>
- Date: Fri, 14 Nov 2003 22:36:51 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Nov 14, 2003, at 19:46, Kyle Moffett wrote:
I am writing some GPL'd Objective-C software that makes use of the
autotools, and
I was wondering what is the best way to link with the Foundation
libraries, given
that I would like to later port this software to work with the GNUStep
libraries.
I answered my question, but I thought I'd post the answer here to help
others.
Apparently libtool just ignores parameters it doesn't recognize. The
way to pass
weird parameters to the linker is with "-Xlinker"
Here's the corrected Makefile.am line:
libfinch_la_LDFLAGS = -no-undefined -version-info 0:0:0 -framework
Foundation
should be:
libfinch_la_LDFLAGS = -no-undefined -version-info 0:0:0 -Xlinker
- -framework -Xlinker Foundation
It appears that libtool is not passing the "-framework" option to gcc,
so the link
fails due to missing symbols defined in Foundation.framework. I tried
adding
"libfinch_la_CFLAGS = -framework Foundation" to my Makefile.am, but it
didn't
help.
This still doesn't address portability to GNUStep, but I probably just
need a
configure.ac macro to test for that.
Cheers,
Kyle Moffett
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQE/tZ9Tag7LSGnFq10RAsBSAJ9oO3I45Au1mRWVvqSsl7n/KLvALQCfcCz0
jlc9FLJL4i+BMHLbh+KEbAg=
=mtl1
-----END PGP SIGNATURE-----
_______________________________________________
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.