aboutsummaryrefslogtreecommitdiff
path: root/m4/check-libc.m4 (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-01-07Sync getentropy() checks with use-builtin-arc4random checksSimone Basso2-30/+48
Without this, we actually fail to build a library that includes the bultin getentropy when compiling for 10.11 on 10.12.
2017-01-07m4/check-libc.m4: improve getentropy checkSimone Basso1-17/+23
- according to man.openbsd.org getentropy() is in unistd.h - according to macOS sierra's man it's in sys/random.h - since sys/random.h is does not exist for iOS and for linux, do not attempt to include it, rather redeclare the prototype - make sure that `./configure`: - uses getentropy() on macOS sierra - does not use getentropy() if compiling for 10.11 - does not use getentropy() if compiling for ios armv7
2017-01-07configure: fix getentropy() for sierra and iosSimone Basso1-1/+55
This diff changes the logic by which configure detects getentropy() to ensure that we don't use the system wide getentropy - with macOS sierra if the deployment target is lower than sierra as found by tor developers here https://gitweb.torproject.org/tor.git/commit/?id=https://gitweb.torproject.org/tor.git/commit/?id=16fcbd21c963a9a65bf55024680c8323c8b7175d - with iOS unconditionally because an app linking libressl compiled with system wide getentropy has been rejected by the App store as I have documented here https://github.com/measurement-kit/measurement-kit/pull/994 I think something similar could also affect clock_gettime judging from tor's patch, but this diff for now doesn't address that. I do not have macOS < sierra, so I could only verify that configure was not picking up system wide getentropy by compiling libressl using export CFLAGS="-mmacosx-version-min=10.11" As regards iOS, removing the check for getentropy and recompiling (thus using libressl builtin getentropy()) was enough to have another iteration of the app accepted. Otherwise testing should be possible with: export LDFLAGS=-arch armv7 -miphoneos-version-min=7.1 -isysroot `xcrun --show-sdk-path --sdk iphoneos` export CPPFLAGS=-arch armv7 -isysroot `xcrun --show-sdk-path --sdk iphoneos` export CFLAGS=-arch armv7 -miphoneos-version-min=7.1 -isysroot `xcrun --show-sdk-path --sdk iphoneos` Related ticket: https://github.com/libressl-portable/portable/issues/230
2017-01-07Disable netcat if arpa/telnet.h is not available (iOS)jacob berkman1-0/+2
2016-11-06update changelog for 2.3.9v2.3.9Brent Cook1-0/+5
2016-09-23update changelog for 2.3.8v2.3.8Brent Cook1-0/+9
2016-07-31update for 2.3.7v2.3.7Brent Cook1-0/+11
2016-07-31set link library dependencies with MSVC, fixes #221Brent Cook3-0/+9
2016-07-31properly enable strnlen checks for MSVCBrent Cook1-1/+1