Fix "make install" handling of symlinks
diff --git a/ChangeLog b/ChangeLog
index 8d7a810..b0841ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,7 @@
errors on use of deprecated functions.
Bugfix
+ * Fix handling of symlinks by "make install" (found by Gaël PORTAY).
* Fix potential NULL pointer dereference (not trigerrable remotely) when
ssl_write() is called before the handshake is finished (introduced in
1.3.10) (first reported by Martin Blumenstingl).
diff --git a/Makefile b/Makefile
index f9a4ce2..441d1f9 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@
cp -r include/polarssl $(DESTDIR)/include
mkdir -p $(DESTDIR)/lib
- cp library/libpolarssl.* library/libmbedtls.* $(DESTDIR)/lib
+ cp -RP library/libpolarssl.* library/libmbedtls.* $(DESTDIR)/lib
mkdir -p $(DESTDIR)/bin
for p in programs/*/* ; do \