1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-30 20:23:49 +03:00

build: auto-detect platforms which don't support shared libs

This commit is contained in:
Andrew Tridgell
2010-03-28 17:24:05 +11:00
parent 28a7348294
commit ab1b096538
2 changed files with 32 additions and 7 deletions

View File

@@ -109,8 +109,12 @@ def configure(conf):
headers='stdio.h',
msg='Checking simple C program')
# see if we can build shared libs
if not conf.CHECK_LIBRARY_SUPPORT():
conf.env.DISABLE_SHARED = True
# check for rpath
if not conf.env.DISABLE_SHARED and conf.CHECK_RPATH_SUPPORT():
if not conf.env.DISABLE_SHARED and conf.CHECK_LIBRARY_SUPPORT(rpath=True):
conf.env.RPATH_ON_BUILD = not Options.options.disable_rpath_build
conf.env.RPATH_ON_INSTALL = (conf.env.RPATH_ON_BUILD and
not Options.options.disable_rpath_install)