From 5f4aad7b19667c963e76f3341d0c976c699d149e Mon Sep 17 00:00:00 2001 From: vagrant Date: Tue, 12 Jul 2016 02:00:20 +0000 Subject: [PATCH] libssl-dev flags --- wscript | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/wscript b/wscript index 76f2ec7..80062dd 100644 --- a/wscript +++ b/wscript @@ -1,17 +1,24 @@ -#! /usr/bin/env python -# encoding: utf-8 -CC='clang' - -def options(opt): - opt.load('nasm') - opt.load('compiler_c') - -def configure(conf): - conf.load('nasm') - conf.load('compiler_c') - -def build(bld): - bld.program(source='sins.c', target='sins', - cflags=['-g', '-std=gnu11'], - linkflags=['-lcrypto', '-lssl']) - bld(features='asm', source='scrap.asm', target='scrap') +#! /usr/bin/env python +# encoding: utf-8 +CC = 'clang' + + +def options(opt): + opt.load('nasm') + opt.load('compiler_c') + + +def configure(conf): + conf.load('nasm') + conf.load('compiler_c') + conf.check_cc(header_name='openssl/sha.h') + + +def build(bld): + bld.program( + source='sins.c', + target='sins', + cflags=['-std=gnu11'], + lib=['ssl', 'crypto'] + ) + bld(features='asm', source='scrap.asm', target='scrap')