Commit 7f3dec63 authored by Niels Möller's avatar Niels Möller

Fixed the enable-shared option.

Rev: src/nettle/configure.ac:1.12
parent 637bd6d8
......@@ -40,7 +40,7 @@ AC_ARG_ENABLE(assembler,
[enable_assembler=yes])
AC_ARG_ENABLE(shared,
AC_HELP_STRING([--enable-shared], [Build a shared library]),
AC_HELP_STRING([--enable-shared], [Build a shared library]),,
[enable_shared=no])
LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \
......@@ -96,12 +96,21 @@ SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)'
SHLIBFILE='$(SHLIBSONAME).$(MINOR)'
SHLIBLINK='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME)'
echo "enable_shared: $enable_shared"
if test "x$enable_shared" = xyes ; then
SHLIBTARGET='$(SHLIBFORLINK)'
SHLIBINSTALL=install-shared
else
SHLIBTARGET=''
SHLIBINSTALL=''
fi
AC_SUBST(SHLIBCFLAGS)
AC_SUBST(SHLIBFORLINK)
AC_SUBST(SHLIBSONAME)
AC_SUBST(SHLIBFILE)
AC_SUBST(SHLIBLINK)
AC_SUBST(SHLIBTARGET)
AC_SUBST(SHLIBINSTALL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment