Skip to content
Snippets Groups Projects
Commit 7f3dec63 authored by Niels Möller's avatar Niels Möller
Browse files

Fixed the enable-shared option.

Rev: src/nettle/configure.ac:1.12
parent 637bd6d8
No related branches found
No related tags found
No related merge requests found
......@@ -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,15 +96,24 @@ 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)
AC_PATH_PROG(M4, m4, m4)
# Checks for typedefs, structures, and compiler characteristics.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment