--- libsoap-1.1.0.orig/Makefile.am
+++ libsoap-1.1.0/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS=nanohttp libcsoap examples
+SUBDIRS=nanohttp libcsoap
 
 bin_SCRIPTS=csoap-config
 
@@ -32,4 +32,3 @@
 
 EXTRA_DIST=$(documentation) $(win32_env) libcsoap.pc.in libcsoap.m4 \
            $(broken_examples)
-
--- libsoap-1.1.0.orig/configure.ac
+++ libsoap-1.1.0/configure.ac
@@ -371,8 +371,14 @@
 examples/nanohttp/Makefile
 examples/csoap/Makefile
 libcsoap.pc
+nanohttp.pc
 csoap-config)
 
 echo "Configured cSOAP $csoap_major.$csoap_minor.$csoap_patch for installation in $prefix";
 
+# cilibrar added the following lines to avoid Debian packaging problems
+chmod a-x examples/xsd2c/ex4/ex4.xml
+chmod a-x examples/csoap/echoattachments-client.c
+chmod a-x examples/csoap/echoattachments-server.c
+chmod a-x examples/nanohttp/client_mime.c
 
--- libsoap-1.1.0.orig/libcsoap/Makefile.am
+++ libsoap-1.1.0/libcsoap/Makefile.am
@@ -11,6 +11,6 @@
                     soap-router.h soap-client.h soap-server.h soap-ctx.h \
                     soap-admin.h
 
-libcsoap_la_LDFLAGS= -version-info @csoap_version@ -release @csoap_release@
+libcsoap_la_LDFLAGS= -version-info @csoap_version@ -Wl,-soname -Wl,libcsoap1
 libcsoap_la_CFLAGS=-I${top_srcdir}
 
--- libsoap-1.1.0.orig/nanohttp/Makefile.am
+++ libsoap-1.1.0/nanohttp/Makefile.am
@@ -12,6 +12,6 @@
                            nanohttp-request.h nanohttp-response.h                \
                            nanohttp-base64.h nanohttp-ssl.h nanohttp-logging.h
 
-libnanohttp_la_LDFLAGS= -version-info @nanohttp_version@ -release @nanohttp_release@
+libnanohttp_la_LDFLAGS= -version-info @nanohttp_version@ -Wl,-soname -Wl,libnanohttp1
 libnanohttp_la_CFLAGS=-I${top_srcdir}
 
