From 8a35ca24695c6ea534224ea3abbabcc73c2a7b46 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 02 Aug 2020 03:59:42 -0400 Subject: build: Build dbg variant --- diff --git a/build b/build index b23b3e5..8441f6b 100755 --- a/build +++ b/build @@ -16,15 +16,18 @@ common_opts = \ --enable-sni \ --disable-aescbc \ --disable-md5 \ - --enable-maxstrength \ + --enable-maxstrength +build_client_opts = $(common_opts) \ --disable-errorstrings -build_client_opts = $(common_opts) -build_full_opts = $(common_opts) +build_full_opts = $(common_opts) \ + --disable-errorstrings +build_dbg_opts = $(common_opts) common_cflags = \ -DNO_SESSION_CACHE build_client_cflags = $(common_cflags) \ -DNO_WOLFSSL_SERVER build_full_cflags = $(common_cflags) +build_dbg_cflags = $(common_cflags) nop: @: @@ -42,14 +45,14 @@ fix: touch src/aclocal.m4 src/configure src/Makefile.in src/config.in touch $@ -build_client build_full: fix +build_client build_full build_dbg: fix oh-autoconfigure -B $(builddir) -- $($@_opts) CFLAGS='$($@_cflags)' oh-autobuild -B $(builddir) touch $@ -build: build_client build_full +build: build_client build_full build_dbg -install_client install_full: build +install_client install_full install_dbg: build oh-autoinstall -B $(builddir) -d $(destdir) rm -Rf \ $(destdir)/usr/lib/$(OPK_HOST_ARCH)/libwolfssl.la \ @@ -57,11 +60,12 @@ install_client install_full: build $(destdir)/usr/share/doc/wolfssl/README.txt \ $(destdir)/usr/share/doc/wolfssl/taoCert.txt oh-fixperms -d $(destdir) - oh-strip -d $(destdir) -k - OPK_PACKAGES="\ - libwolfssl.$(abi_ver)-$(variant) \ - libwolfssl.$(abi_ver)-$(variant)-dev \ - " oh-installfiles -d $(destdir) + [ x"$(variant)" != x'dbg' ] && oh-strip -d $(destdir) + OPK_PACKAGES="libwolfssl.$(abi_ver)-$(variant)" \ + oh-installfiles -d $(destdir) + [ x"$(variant)" != x'dbg' ] && \ + OPK_PACKAGES="libwolfssl.$(abi_ver)-$(variant)-dev" \ + oh-installfiles -d $(destdir) -install: install_client install_full +install: install_client install_full install_dbg oh-shlibdeps -- cgit v0.9.1