File libcryptopp-shared.patch of Package libcryptopp

Index: GNUmakefile
===================================================================
--- GNUmakefile.orig	2016-10-11 01:49:54.000000000 +0200
+++ GNUmakefile	2017-03-03 06:40:32.760437872 +0200
@@ -74,7 +74,7 @@ ifeq ($(DATADIR),)
 DATADIR := $(PREFIX)/share
 endif
 ifeq ($(LIBDIR),)
-LIBDIR := $(PREFIX)/lib
+LIBDIR := $(PREFIX)/$(LIB)
 endif
 ifeq ($(BINDIR),)
 BINDIR := $(PREFIX)/bin
@@ -405,7 +405,7 @@ ifeq ($(HAS_SOLIB_VERSION),1)
 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)
+SOLIB_FLAGS=-Wl,-soname,libcryptopp.so$(SOLIB_VERSION_SUFFIX)
 endif # HAS_SOLIB_VERSION
 
 ###########################################################
@@ -640,8 +640,8 @@ endif
 libcryptopp.dylib: $(LIBOBJS)
 	$(CXX) -dynamiclib -o $@ $(CXXFLAGS) -install_name "$@" -current_version "$(LIB_MAJOR).$(LIB_MINOR).$(LIB_PATCH)" -compatibility_version "$(LIB_MAJOR).$(LIB_MINOR)" -headerpad_max_install_names $(LDFLAGS) $(LIBOBJS)
 
-cryptest.exe: libcryptopp.a $(TESTOBJS)
-	$(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) ./libcryptopp.a $(LDFLAGS) $(LDLIBS)
+cryptest.exe: libcryptopp.so$(SOLIB_VERSION_SUFFIX) $(TESTOBJS)
+	$(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) -L. -lcryptopp $(LDFLAGS) $(LDLIBS)
 
 # Makes it faster to test changes
 nolib: $(OBJS)