Skip to content

Commit 19b69b5

Browse files
authored
Merge pull request #383 from ColtonWilley/pr/debian-seed-src
Add enable seed src to debian package
2 parents 26e81ea + cd4a134 commit 19b69b5

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

debian/install-wolfprov.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ wolfprov_build() {
100100
WOLFSSL_ISFIPS=${WOLFSSL_ISFIPS:-0}
101101
dpkg-buildpackage -us -uc \
102102
-eWOLFSSL_ISFIPS \
103+
-eWOLFPROV_DEBUG \
103104
-eCC -eCXX \
104105
-eCCACHE_DIR -eCCACHE_BASEDIR -eCCACHE_NOHASHDIR -eCCACHE_COMPILERCHECK
105106

debian/rules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ifeq ($(WOLFPROV_DEBUG),1)
3737
VARIANT := $(VARIANT)-debug
3838
VARIANT_DESC := $(VARIANT_DESC) with debug logs
3939
VERSION := $(VERSION)-debug
40-
DEBUG_FLAG := --enable-debug
40+
DEBUG_FLAG := --enable-debug --enable-debug-silent
4141
endif
4242

4343
ifeq ($(DEB_CFLAGS_APPEND),)
@@ -57,9 +57,9 @@ override_dh_auto_configure:
5757
# ensure only our .pc dirs are searched: \
5858
PKG_CONFIG_DIR= PKG_CONFIG_PATH= \
5959
PKG_CONFIG_LIBDIR="$(PKG_CONFIG_LIBDIR)" \
60-
dh_auto_configure -- $(DEBUG_FLAG); \
60+
dh_auto_configure -- $(DEBUG_FLAG) --enable-seed-src; \
6161
else \
62-
./configure $(DEBUG_FLAG); \
62+
./configure $(DEBUG_FLAG) --enable-seed-src; \
6363
fi
6464

6565
override_dh_auto_build:

src/wp_seed_src.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ static XFILE g_urandom_file = XBADFILE;
7171
/*
7272
* Flag indicating whether the seed callback has been registered.
7373
*/
74+
#ifdef WC_RNG_SEED_CB
7475
static int g_seed_cb_registered = 0;
76+
#endif
7577

7678
/**
7779
* wolfSSL seed callback that uses the cached /dev/urandom file.

0 commit comments

Comments
 (0)