That took me more than enough time to work out.. ok the following should
work.

You will need to install a copy of ICU, the ICU shipped with MacOS 
(assuming they still do) is not good enough. The easiest way to do 
this is to download the source code and build it yourself. Currently
I am using 5.4. Unlike other posix platforms we are going to have to
ship the libs with the framework. You will also need to install libtommath
via MacPorts for example. We need a way to link this into the build
statically, because we can't ask everyone to install it.

To get round the build shell issue DYLD_LIBRARY_PATH failure (SIP)
see here: 
http://paulbeachsblog.blogspot.fr/2016/03/dyldlibrarypath-and-el-capitan.html

Reboot command-r
Terminal csrutil disable
Restart

or we borrow libreoffices workaround.

Within ICU

Amend config/mh-darwin
Note install-path LD_SONAME

## Compiler switches to embed a library name and version informationifeq 
($(ENABLE_RPATH),YES)
LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-curre
nt_version -Wl,$(SO_TARGET_VERSION) -install_name $(libdir)/$(notdir $(MIDDLE_SO
_TARGET))
else
LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-curre
nt_version -Wl,$(SO_TARGET_VERSION) -install_name /Library/Frameworks/Firebird.f
ramework/Versions/A/Libraries/$(notdir $(MIDDLE_SO_TARGET))
endif

Build ICU
        ICU ./configure --enable-renaming=no

Firebird 

./autogen.sh
./configure 

Needs these flags setting for example

CFLAGS
(ucnv.h)                -I/Users/pbeach/icu54/icu/source/common
(libtommath.h)  -I/opt/local/include/libtommath

LDFLAGS
(-licuuc)               -L/Users/pbeach/icu54/icu/source/lib
(-ltommath)             -L/opt/local/lib

Make needs these for example

CXXFLAGS
(ucnv.h)                -I/Users/pbeach/icu54/icu/source/common
(libtommath.h)  -I/opt/local/include/libtommath
(utrans.h)              -I/Users/pbeach/icu54/icu/source/i18n

Hows that for starters...
Regards
Paul

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to