diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-11-23 07:13:40 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-11-23 07:13:40 +0000 |
commit | 831823773e16aff2a237335145effd426d5ebf87 (patch) | |
tree | af728a2862c4d62796dfdf508feafa4e57f42e46 /aconfigure.ac | |
parent | b4549841bb9e71c7856e145046795f1dd010aeb3 (diff) |
Fixed #1713: Enable building the libraries as shared libraries/DLLs for GNU targets
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4656 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r-- | aconfigure.ac | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/aconfigure.ac b/aconfigure.ac index d814e786..8d77ffa3 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -423,6 +423,18 @@ AC_ARG_ENABLE(epoll, AC_MSG_RESULT([select()]) ]) +AC_SUBST(ac_shared_libraries) +AC_ARG_ENABLE(shared, + AC_HELP_STRING([--enable-shared], + [Build shared libraries]), + [if test "$enable_shared" = "yes"; then + [ac_shared_libraries=1] + CFLAGS="$CFLAGS -fPIC" + AC_MSG_RESULT([Building shared libraries... yes]) + fi], + AC_MSG_RESULT([Building shared libraries... no]) + ) + dnl ###################### dnl # OS specific files @@ -824,7 +836,6 @@ AC_ARG_ENABLE(libsamplerate, AC_MSG_RESULT([Skipping libsamplerate detection]) ) -dnl # Include libsamplerate AC_SUBST(ac_resample_dll) AC_ARG_ENABLE(resample_dll, AC_HELP_STRING([--enable-resample-dll], |