On Tuesday, January 5, 2016 at 1:51:24 PM UTC-5, [email protected] wrote:
>
> So I think I'm getting somewhere... and sorry to be a bother.
>
No, not at all. Don't let my view of lawyers, judges and politicians
dissuade you.
> Qt uses gnu-shared stl.
>
> 1. Can we get the setenv-{platform} scripts into the regular source?
> 2. When I build using the new scripts and source, I can't do my old trick
> of renaming the library:
>
> dlopen failed: library "libcryptopp.so.5.6" not found
>
>
> I renamed libcrypto.so.5.3.6 to libcrypto-and.so (akin to libcrypto-ios
> and libcrypto-osx) Somehow it set it's resolution to the .5.6 link, but
> this gets me into unknown territory. Why/how do I set links on the android
> device? I'd rather just use files.
>
>
> How can I work around this?
>
That was a recent check-in, and I've been meaning to talk to Todd about it.
If you look at the makefile, line 81, we have
(https://github.com/weidai11/cryptopp/blob/master/GNUmakefile-cross#L81):
HAS_SOLIB_VERSION := 1
Later, that activates the code shown below.
To go back to just the libcryptopp.so, try this:
make -f GNUmakefile-cross ... HAS_SOLIB_VERSION=0
That will force HAS_SOLIB_VERSION low so libcryptopp.so.5.6.3 and
libcryptopp.so.5.6 are *not* created.
I like the patch, but we need to make things easy in the common case
(q.v.). So what I was thinking was (and wanted to talk to Todd about),
should it be "off by default", and make "enabled" the special case? That
is, folks who want it would issue:
make -f GNUmakefile-cross ... HAS_SOLIB_VERSION=1
The common case and avoiding user grief is important to me.
Jeff
*****
ifeq ($(HAS_SOLIB_VERSION),1)
# Full version suffix for shared library
SOLIB_VERSION_SUFFIX=.$(LIB_MAJOR).$(LIB_MINOR).$(LIB_PATCH)
# Different patchlevels are compatible, minor versions are not
SOLIB_COMPAT_SUFFIX=.$(LIB_MAJOR).$(LIB_MINOR)
SOLIB_FLAGS=-Wl,-soname,libcryptopp.so$(SOLIB_COMPAT_SUFFIX)
endif # HAS_SOLIB_VERSION
And:
ifeq ($(HAS_SOLIB_VERSION),1)
.PHONY: libcryptopp.so
libcryptopp.so: libcryptopp.so$(SOLIB_VERSION_SUFFIX)
endif
libcryptopp.so$(SOLIB_VERSION_SUFFIX): $(LIBOBJS)
$(CXX) -shared $(SOLIB_FLAGS) -o $@ $(CXXFLAGS)
-Wl,--exclude-libs,ALL $(LIBOBJS) $(LDFLAGS) $(LDLIBS)
ifeq ($(HAS_SOLIB_VERSION),1)
-$(LN) libcryptopp.so$(SOLIB_VERSION_SUFFIX) libcryptopp.so
-$(LN) libcryptopp.so$(SOLIB_VERSION_SUFFIX)
libcryptopp.so$(SOLIB_COMPAT_SUFFIX)
endif
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.