unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Build problems on OS X
@ 2010-04-11 23:43 Aaron Ecay
  2010-04-11 23:44 ` [PATCH 1/4] Use C++ compiler to link notmuch binaries Aaron Ecay
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Aaron Ecay @ 2010-04-11 23:43 UTC (permalink / raw)
  To: notmuch

In the process of updating to the latest sources, I've discovered that notmuch
no longer builds on OS X.  As a reply to this email, I'll be sending 4
patches.  The first two are bugfixes; the third adds the infrastructure to the
Makefiles to build a shared library on OS X, since the Mach-O conventions are
somewhat different than the Linux ones.  Modulo makefile style quibbles, this
patch should be correct.

The fourth patch I am not sure of.  Even after adding the proper command line
flags to build the shared binary on OS X, I get symbol not found errors for
Glib/Gmime symbols.  The shared binary links against the shared lib, which in
turn links against Glib and Gmime, but it appears that at least on OS X the
linker won't follow these second-order links, and the notmuch shared binary
must be linked against Glib/Gmime directly.  This patch fixes the build for
me, but it may not be correct on Linux/other Unices.  I can resubmit this
patch to add the extra linker flags only when building for OS X.  If anyone
knows how to get the OS X linker to behave like the Linux one in this regard,
that will likely be a better solution.

Aaron

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-04-14 23:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-11 23:43 Build problems on OS X Aaron Ecay
2010-04-11 23:44 ` [PATCH 1/4] Use C++ compiler to link notmuch binaries Aaron Ecay
2010-04-14 17:39   ` Carl Worth
2010-04-11 23:44 ` [PATCH 2/4] Fix up Makefile for build Aaron Ecay
2010-04-14 17:47   ` Carl Worth
2010-04-11 23:44 ` [PATCH 3/4] Add infrastructure for building shared library on OS X Aaron Ecay
2010-04-14 18:01   ` Carl Worth
2010-04-14 18:47     ` Carl Worth
2010-04-14 23:39     ` Carl Worth
2010-04-11 23:44 ` [PATCH 4/4] Add CONFIGURE_LDFLAGS to the notmuch-shared buld command line Aaron Ecay
2010-04-14 18:04   ` Carl Worth
2010-04-14 17:37 ` Build problems on OS X Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).