This commit is contained in:
Thomas Nagy 2016-09-15 22:41:32 +02:00
parent 410d1568d5
commit a28385fe94
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 7 additions and 4 deletions

View File

@ -14,14 +14,17 @@ def configure(conf):
conf.load('compiler_c gnu_dirs')
def build(bld):
bld(
features='c',
source='test_shlib.c',
use='cshlib',
# it is -uselib' in this case to avoid propagation of '-shared'
# to the program below. A more explicit alternative is to set
# cflags=bld.env.CFLAGS_cshlib
uselib='cshlib',
target='objects-for-shlib',
)
bld(
features='c',
source='test_shlib.c',
@ -47,7 +50,7 @@ def build(bld):
source='main.c',
use='something-shared',
)
bld(
features='c cprogram',
target='exe-static',