Update in demos/d/

This commit is contained in:
Thomas Nagy 2015-01-30 01:06:15 +01:00
parent 004b866789
commit 38ae92994d
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
obj = bld(features='d dprogram')
obj.source = 'main.d extra.d'
obj.target = 'test2'
obj.importpaths = '.'
obj.includes = '.'

View File

@ -12,6 +12,8 @@ def options(opt):
opt.load('compiler_d')
def configure(conf):
# why does dmd require -fPIC on everything?
conf.env.DFLAGS='-fPIC'
conf.load('compiler_d')
conf.env.LIB_PTHREAD = ['pthread']
conf.check_dlibrary()