aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-07-11 04:47:03 -0500
committerBrent Cook <bcook@openbsd.org>2014-07-11 04:47:03 -0500
commit8b125f31bb733c1707e6e6aaf699c0ef39fea8ec (patch)
tree295acaed00bba1c7da3f64adfea89a5c96eac411
parent84e11fe89df5a272eb815b204d5be70fc3805b7c (diff)
downloadportable-8b125f31bb733c1707e6e6aaf699c0ef39fea8ec.tar.gz
portable-8b125f31bb733c1707e6e6aaf699c0ef39fea8ec.tar.bz2
portable-8b125f31bb733c1707e6e6aaf699c0ef39fea8ec.zip
build strtonum directly into apps/openssl
it is not needed as a library export ok beck@
-rw-r--r--apps/Makefile.am.tpl4
-rw-r--r--crypto/Makefile.am.tpl3
-rwxr-xr-xupdate.sh10
3 files changed, 12 insertions, 5 deletions
diff --git a/apps/Makefile.am.tpl b/apps/Makefile.am.tpl
index ea6174d..7222c18 100644
--- a/apps/Makefile.am.tpl
+++ b/apps/Makefile.am.tpl
@@ -9,3 +9,7 @@ openssl_LDADD += $(top_builddir)/ssl/libssl.la
9 9
10openssl_SOURCES = 10openssl_SOURCES =
11noinst_HEADERS = 11noinst_HEADERS =
12
13if NO_STRTONUM
14openssl_SOURCES += strtonum.c
15endif
diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl
index 1aa8e8b..4830da4 100644
--- a/crypto/Makefile.am.tpl
+++ b/crypto/Makefile.am.tpl
@@ -60,9 +60,6 @@ endif
60if NO_ISSETUGID 60if NO_ISSETUGID
61libcompat_la_SOURCES += compat/issetugid_linux.c 61libcompat_la_SOURCES += compat/issetugid_linux.c
62endif 62endif
63if NO_STRTONUM
64libcompat_la_SOURCES += compat/strtonum.c
65endif
66 63
67noinst_HEADERS = des/ncbc_enc.c 64noinst_HEADERS = des/ncbc_enc.c
68noinst_HEADERS += compat/thread_private.h 65noinst_HEADERS += compat/thread_private.h
diff --git a/update.sh b/update.sh
index 3fc5d07..3fa94f0 100755
--- a/update.sh
+++ b/update.sh
@@ -63,7 +63,6 @@ for i in explicit_bzero.c strlcpy.c strlcat.c timingsafe_bcmp.c timingsafe_memcm
63 cp $libc_src/string/$i crypto/compat 63 cp $libc_src/string/$i crypto/compat
64done 64done
65cp $libc_src/stdlib/reallocarray.c crypto/compat 65cp $libc_src/stdlib/reallocarray.c crypto/compat
66cp $libc_src/stdlib/strtonum.c crypto/compat
67cp $libc_src/crypt/arc4random.c crypto/compat 66cp $libc_src/crypt/arc4random.c crypto/compat
68cp $libc_src/crypt/chacha_private.h crypto/compat 67cp $libc_src/crypt/chacha_private.h crypto/compat
69cp $libcrypto_src/crypto/getentropy_*.c crypto/compat 68cp $libcrypto_src/crypto/getentropy_*.c crypto/compat
@@ -374,10 +373,17 @@ crypto_excludes=(
374 done 373 done
375) 374)
376 375
376# conditional compiles
377cp $libc_src/stdlib/strtonum.c apps/
378apps_excludes=(
379 strtonum.c
380 )
377(cd apps 381(cd apps
378 cp Makefile.am.tpl Makefile.am 382 cp Makefile.am.tpl Makefile.am
379 for i in `ls -1 *.c|sort`; do 383 for i in `ls -1 *.c|sort`; do
380 echo "openssl_SOURCES += $i" >> Makefile.am 384 if ! [[ ${apps_excludes[*]} =~ $i ]]; then
385 echo "openssl_SOURCES += $i" >> Makefile.am
386 fi
381 done 387 done
382 for i in `ls -1 *.h|sort`; do 388 for i in `ls -1 *.h|sort`; do
383 echo "noinst_HEADERS += $i" >> Makefile.am 389 echo "noinst_HEADERS += $i" >> Makefile.am