Bug 3602

Summary: 3.13.2 can't build on OS X without change to src/Makefile.am
Product: Claws Mail (GTK 2) Reporter: Perry E. Metzger <perry>
Component: OtherAssignee: users
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 3.13.2   
Hardware: PC   
OS: Mac OS X 10.2   

Description Perry E. Metzger 2016-01-24 01:46:19 UTC
On OS X 10.11.3 (btw, not an option in the Bugzilla platform options:)

src/Makefile.am assumes that if you're not on Windows that --export-dynamic is a fine linker option on all Unix platforms.

However, on OS X, you need to use -export_dynamic and otherwise the build dies. I verified that fixing this by editing Makefile.am and doing an autoreconf worked -- the build then functioned.

I'd submit a patch but I'm unsure about what if PLATFORM_ goop I need to specify OS X.

FYI, I'm the macports maintainer for claws-mail -- for the moment I've done a kludgy patch on macports so that it can be updated to 3.13.2 so that the remote exploit can be fixed, but I'd like to "do this right" soon.

Happy to test fixes made to the git version btw.
Comment 1 Paul 2016-07-12 15:12:19 UTC
(In reply to comment #0)
> I'd submit a patch but I'm unsure about what if PLATFORM_ goop I need to
> specify OS X.

Did you try PLATFORM_OSX ? What else did you try?
Comment 2 Andrej Kacian 2016-07-12 15:29:16 UTC
There are no established PLATFORM_* macros or variables. "PLATFORM_WIN32" is something we define ourselves, based on our own checks. Look at configure.ac, around line 113 and below.

You have to write your own check - probably something about "darwin" or "osx" being in the host triplet string, similar to how we check for Windows. Based on that, you can set PLATFORM_WHATEVERYOUWANT variable (but name it sanely, please :) ), and use it in Makefile.am and elsewhere.