Issue 141: OS X: Building hxcpp as static libs
Status:  Fixed
Owner: ----
Closed:  Feb 2012
Reported by renaud.p...@gmail.com, Sep 23, 2011
** What steps will reproduce the problem? **

Build the libraries (std, regexp, zlib) with the "static" flag:
    haxelib run hxcpp BuildLibs.xml -Dstatic -DHXCPP_M64 -DGCC_OLD


** What is the expected output? What do you see instead? **

When trying to link against the libraries, ld shows an error message saying that __neko_entry_point is defined more than once.

After further investigation, I discovered that STATIC_LINK was not defined when compiling the libs source files, which, I think, should be defined when building with the -Dstatic option.


** What version of the product are you using? On what operating system? ** 

Version 2,08,0 under Mac OS 10.7.1.

** Please provide any additional information below. **

I tried to modify mac-toolchain.xml without success.
Feb 8, 2012
Project Member #1 gameh...@gmail.com
Hi,
The system did not automatically remove the old objs, so you were probably getting the dynamic ones in your .a file.  You are right about the STATIC_LINK, and I think I have fixed this now.
Status: Fixed