• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Foundation with autoconf, automake, and libtool (RESOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Foundation with autoconf, automake, and libtool (From: Kyle Moffett <email@hidden>)

  • Prev by Date: Re: NSSearchField
  • Next by Date: Strange "data" files appearing
  • Previous by thread: Foundation with autoconf, automake, and libtool
  • Next by thread: newbie: nil textfield
  • Index(es):
    • Date
    • Thread