libssl-dev flags

master
vagrant 2016-07-12 02:00:20 +00:00
parent 02a75dcd79
commit 5f4aad7b19
1 changed files with 24 additions and 17 deletions

15
wscript
View File

@ -1,17 +1,24 @@
#! /usr/bin/env python #! /usr/bin/env python
# encoding: utf-8 # encoding: utf-8
CC='clang' CC = 'clang'
def options(opt): def options(opt):
opt.load('nasm') opt.load('nasm')
opt.load('compiler_c') opt.load('compiler_c')
def configure(conf): def configure(conf):
conf.load('nasm') conf.load('nasm')
conf.load('compiler_c') conf.load('compiler_c')
conf.check_cc(header_name='openssl/sha.h')
def build(bld): def build(bld):
bld.program(source='sins.c', target='sins', bld.program(
cflags=['-g', '-std=gnu11'], source='sins.c',
linkflags=['-lcrypto', '-lssl']) target='sins',
cflags=['-std=gnu11'],
lib=['ssl', 'crypto']
)
bld(features='asm', source='scrap.asm', target='scrap') bld(features='asm', source='scrap.asm', target='scrap')