Hi Przemek,
There is small problem with share library when local HBZLIB and/or
HBPCRE.
Now they are not part of harbour shared library. It means that on some
platforms which strictly needs relocatable code and have to resolve
all
dependencies it's not possible to create harbour shared library.
On some other platforms it's necessary to update linked order, i.e.
now in HAIKU shared linked binaries generate the following error:
Could not resolve symbol 'pcre_malloc'.
I don't have Harbour running on this platform, but you can
try changing 'LIBS +=' in lines 24 and 28 of config/dyn.mk
to 'SYSLIBS +=' and see if it solves it.
It also increase the size of final binaries which have to use regex
or zlib.
Can you second dynamic compilation phase to these libraries and
include
them in harbour shared library when they are used in local version?
We can move logic in source/Makefile + source/dynlib dir one
level up, although I don't like it too much as it will easily
encourage to add any contribs to harbour dll which is IMO
against the idea of a standard dll interface and having well
separated components, plus it changes the dir layout in a
way which I feel quite uncomfortable / unclean for some reason.
The other concern is that zlib and pcre will be present in
*some* harbour dll builds but not present in others, which
can create confusion and defeats the idea of standard Harbour
dll interface. It can also probably cause problems if someone
wants to link in 3rd party components which *also* exports
zlib/pcre interface.
Possibly we shouldn't reinvent the wheel here, but I don't
have information on how this problem is handled in other projects.
It could be a solution to build separate .dlls from hbpcre
and hbzlib and link those to final executables. But we're
missing generic support for such feature yet.
Or we could force relocatable code for zlib / pcre on all
platforms / builds.
...or any other/better idea?
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour