+Tue Apr 10 12:40:19 CEST 2007 Jochen Eisinger <coffee@silcnet.org>
+
+ * Only pass -rpath to libtool when building shared libraries.
+ Affected file lib/Makefile.ad
+ * Removing the stray "s" in configure.ad
+
Sat Mar 24 19:13:58 CET 2007 Jochen Eisinger <coffee@silcnet.org>
* Redraw the screen after creating a new key. Affected file
# Author: Pekka Riikonen <priikone@silcnet.org>
#
# Copyright (C) 2000 - 2007 Pekka Riikonen
-s#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
silcvcard \
#endif SILC_DIST_VCARD
+if SILC_ENABLE_SHARED
+LIBTOOL_OPTS= -rpath $(DESTDIR)$(libdir)
+else
+LIBTOOL_OPTS=
+endif
+
SILCLIB = libsilc.a
#ifdef SILC_DIST_CLIENTLIB
find $(SILCLIB_DIRS) -type f -name *.lo | xargs \
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \
-version-info $(LIBSILC_CURRENT):$(LIBSILC_REVISION):$(LIBSILC_AGE) \
- -release $(LIB_BASE_VERSION) -rpath $(DESTDIR)$(libdir) -o libsilc.la
+ -release $(LIB_BASE_VERSION) $(LIBTOOL_OPTS) -o libsilc.la
#ifdef SILC_DIST_CLIENTLIB
LIBSILCCLIENT_CURRENT=@LIBSILCCLIENT_CURRENT@
find $(SILCCLIENTLIB_DIRS) -type f -name *.lo | xargs \
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \
-version-info $(LIBSILCCLIENT_CURRENT):$(LIBSILCCLIENT_REVISION):$(LIBSILCCLIENT_AGE) \
- -release $(LIB_BASE_VERSION) -rpath $(DESTDIR)$(libdir) -o libsilcclient.la
+ -release $(LIB_BASE_VERSION) $(LIBTOOL_OPTS) -o libsilcclient.la
#endif SILC_DIST_CLIENTLIB
#ifdef SILC_DIST_SERVERLIB
find $(SILCSERVERLIB_DIRS) -type f -name *.lo | xargs \
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \
-version-info $(LIBSILCSERVER_CURRENT):$(LIBSILCSERVER_REVISION):$(LIBSILCSERVER_AGE) \
- -release $(LIB_BASE_VERSION) -rpath $(DESTDIR)$(libdir) -o libsilcserver.la
+ -release $(LIB_BASE_VERSION) $(LIBTOOL_OPTS) -o libsilcserver.la
#endif SILC_DIST_SERVERLIB
#ifdef SILC_DIST_TOOLKIT