File snap7-makefile-1.4.2.patch of Package snap7

diff -urN snap7-full-1.2.1/build/unix/common.mk snap7-full-1.2.1-patch/build/unix/common.mk
--- snap7-full-1.2.1/build/unix/common.mk	2014-04-16 11:16:20.000000000 +0300
+++ snap7-full-1.2.1-patch/build/unix/common.mk	2014-12-04 10:14:51.204654447 +0200
@@ -14,11 +14,11 @@
 LibraryPathSwitch      :=-L
 PreprocessorSwitch     :=-D
 SourceSwitch           :=-c 
-OutputFile             :=../bin/$(Platform)/libsnap7.so
+OutputFile             :=../bin/$(Platform)/libsnap7.so.1.2
 PreprocessOnlySwitch   :=-E 
 ObjectsFileList        :="filelist.txt"
 MakeDirCommand         :=mkdir -p
-LinkOptions            :=  -O3
+LinkOptions            :=  -Wl,-soname,libsnap7.so.1 -O3
 IncludePath            :=  $(IncludeSwitch). $(IncludeSwitch)../../src/sys $(IncludeSwitch)../../src/core $(IncludeSwitch)../../src/lib 
 Libs                   := $(LibrarySwitch)pthread $(LibrarySwitch)rt 
 LibPath                := $(LibraryPathSwitch). 
diff -urN snap7-full-1.2.1/build/unix/i386_linux.mk snap7-full-1.2.1-patch/build/unix/i386_linux.mk
--- snap7-full-1.2.1/build/unix/i386_linux.mk	2014-04-16 11:16:22.000000000 +0300
+++ snap7-full-1.2.1-patch/build/unix/i386_linux.mk	2014-12-04 10:14:51.205654434 +0200
@@ -4,7 +4,7 @@
 ##
 TargetCPU  :=i386
 OS         :=linux
-CXXFLAGS   := -O3 -fPIC -pedantic
+CXXFLAGS   += -O3 -fPIC -pedantic
 
 # Standard part
 
diff -urN snap7-full-1.2.1/build/unix/x86_64_linux.mk snap7-full-1.2.1-patch/build/unix/x86_64_linux.mk
--- snap7-full-1.2.1/build/unix/x86_64_linux.mk	2014-04-16 11:16:20.000000000 +0300
+++ snap7-full-1.2.1-patch/build/unix/x86_64_linux.mk	2014-12-04 10:14:51.206654422 +0200
@@ -4,7 +4,7 @@
 ##
 TargetCPU  :=x86_64
 OS         :=linux
-CXXFLAGS   := -O3 -fPIC -pedantic
+CXXFLAGS   += -O3 -fPIC -pedantic
 
 # Standard part
 
diff -urN snap7-full-1.2.1/examples/cpp/i386-linux/makefile snap7-full-1.2.1-patch/examples/cpp/i386-linux/makefile
--- snap7-full-1.2.1/examples/cpp/i386-linux/makefile	2013-07-24 12:55:48.000000000 +0300
+++ snap7-full-1.2.1-patch/examples/cpp/i386-linux/makefile	2014-12-04 10:15:34.036118980 +0200
@@ -6,12 +6,12 @@
 ## Intend this makefile only as a "batch examples updater" after library modification.
 ##
 
-Libs     := -lsnap7 
-Wrapper  :=snap7.cpp
+Libs     := -lsnap7 -L.
+Wrapper  := snap7.cpp
 
 CXX      := g++
 CC       := gcc
-CXXFLAGS :=-O3
+CXXFLAGS += -O3
 CFLAGS   :=
 
 .PHONY: all clean
diff -urN snap7-full-1.2.1/examples/cpp/x86_64-linux/makefile snap7-full-1.2.1-patch/examples/cpp/x86_64-linux/makefile
--- snap7-full-1.2.1/examples/cpp/x86_64-linux/makefile	2013-07-24 12:55:48.000000000 +0300
+++ snap7-full-1.2.1-patch/examples/cpp/x86_64-linux/makefile	2014-12-04 10:14:51.207654409 +0200
@@ -6,12 +6,12 @@
 ## Intend this makefile only as a "batch examples updater" after library modification.
 ##
 
-Libs     := -lsnap7 
+Libs     := -lsnap7 -L.
 Wrapper  :=snap7.cpp
 
 CXX      := g++
 CC       := gcc
-CXXFLAGS :=-O3
+CXXFLAGS += -O3 
 CFLAGS   :=
 
 .PHONY: all clean
diff -urN snap7-full-1.2.1/examples/plain-c/i386-linux/makefile snap7-full-1.2.1-patch/examples/plain-c/i386-linux/makefile
--- snap7-full-1.2.1/examples/plain-c/i386-linux/makefile	2013-07-24 13:04:36.000000000 +0300
+++ snap7-full-1.2.1-patch/examples/plain-c/i386-linux/makefile	2014-12-04 10:16:04.188742020 +0200
@@ -6,12 +6,12 @@
 ## Intend this makefile only as a "batch examples updater" after library modification.
 ##
 
-Libs     := -lsnap7 
+Libs     := -lsnap7 -L.
 
 CXX      := g++
 CC       := gcc
-CXXFLAGS :=-O3
-CFLAGS   :=
+CXXFLAGS += -O3
+CFLAGS   +=
 
 .PHONY: all clean
 
diff -urN snap7-full-1.2.1/examples/plain-c/x86_64-linux/makefile snap7-full-1.2.1-patch/examples/plain-c/x86_64-linux/makefile
--- snap7-full-1.2.1/examples/plain-c/x86_64-linux/makefile	2013-07-24 13:05:08.000000000 +0300
+++ snap7-full-1.2.1-patch/examples/plain-c/x86_64-linux/makefile	2014-12-04 10:14:51.207654409 +0200
@@ -6,11 +6,11 @@
 ## Intend this makefile only as a "batch examples updater" after library modification.
 ##
 
-Libs     := -lsnap7 
+Libs     := -lsnap7 -L.
 
 CXX      := g++
 CC       := gcc
-CXXFLAGS :=-O3
+CXXFLAGS += -O3
 CFLAGS   :=
 
 .PHONY: all clean