aboutsummaryrefslogtreecommitdiff
path: root/m4 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Disable netcat if arpa/telnet.h is not available (iOS)jacob berkman2016-08-091-0/+2
|
* Fix typo in USE_BUILTIN_ARC4RANDOM checkcelan692016-07-191-1/+1
| | | Solaris 11 recently introduced a builtin arc4random in libc which fails the tests in "make check". Found USE_BUILTIN_ARC4RANDOM, but could not get it to work. Apparently, there is a typo in the configure logic rendering USE_BUILTIN_ARC4RANDOM ineffective.
* check linker flags before checking for functionsBrent Cook2016-04-241-2/+4
|
* add things to minimize diffs with OpenNTPD-portableBrent Cook2016-02-152-19/+17
|
* whitelist NetBSD 7.0 native arc4random(3) implementation.Brent Cook2016-01-032-3/+17
| | | | | NetBSD 7 improves arc4random(3) over earlier versions by adding fork detection, stronger assertions on seed failure.
* enable nc on AIXBrent Cook2016-01-031-0/+1
|
* update check for b64_ntopBrent Cook2015-12-271-1/+1
| | | | typo spotted by Jonas 'Sortie' Termansen
* installing nc(1) should imply building, even if not whitelistedBrent Cook2015-12-071-1/+5
|
* build nc on solaris and cygwinBrent Cook2015-11-231-0/+2
|
* whitelist nc on other BSDsBrent Cook2015-10-231-0/+2
|
* disable some tests with 32-bit time_t systemsBrent Cook2015-10-171-1/+0
| | | | Also disable use of _mkgmtime, it does not produce correct results.
* include timegm fallbackBrent Cook2015-10-151-0/+3
|
* check for pledge(2)Brent Cook2015-10-121-2/+2
|
* add tame(2) checkBrent Cook2015-10-071-7/+10
|
* add b64_ntop checking and fallback for nc(1)Brent Cook2015-10-012-3/+21
|
* remove incorrect commentBrent Cook2015-09-301-1/+0
| | | | | We actually want to only start extending CFLAGS after calling AC_PROG_CC so we get the default autoconf value (usually just -O2).
* allow nc to build on linux and os xBrent Cook2015-09-132-1/+11
|
* restrict nc to openbsd builds for nowBrent Cook2015-09-121-0/+2
|
* disable strict aliasing on HP-UX C/aC++ compilerv2.2.2kinichiro2015-08-041-1/+1
| | | | | to disable strict aliasing on HP-UX C/aC++, `+Otype_safety=off` is right. `+Otype_safety=strong` forces ANSI aliasing.
* add initial CMake and Visual Studio build supportBrent Cook2015-07-211-1/+1
| | | | | | | | This moves the compatibility include files from include to include/compat so we can use the awful MS C compiler <../include/> trick to emulate the GNU #include_next extension. This also removes a few old compat files we do not need anymore.
* disable strict aliasing on AIX xlc and HP-UX aC++ compilersBrent Cook2015-07-162-13/+3
|
* disable strict aliasing by default, noticed by miod@Brent Cook2015-07-151-0/+10
|
* add check for inet_pton, nudge minimum win32 compat to 0x0501Brent Cook2015-07-022-2/+3
|
* fix libtool 2.4.2 stack-protector flag handlingBrent Cook2015-06-131-1/+3
| | | | | | | | Teach libtool 2.4.2 how to pass -fstack-protector* to the linker so libssp is properly linked in on some toolchains. See upstream patch: https://github.com/instantinfrastructure/poky-daisy/blob/master/meta/recipes-devtools/libtool/libtool/respect-fstack-protector.patch Thanks to kinichiro inoguchi
* always check if ssp needs to be linkedBrent Cook2015-06-111-3/+1
|
* fix definition of DISABLE_AS_EXECUTABLE_STACKBrent Cook2015-05-231-1/+1
|
* refactor configure into separate m4 macrosBrent Cook2015-05-234-0/+280
| | | | this allows for some reusability with libtls
* simplify hardening check logic, disable for mingwBrent Cook2015-01-052-147/+0
| | | | | | | | | | | Rather than doing separate linker/compiler checks, just build a non-empty program with each so that the compiler will actually try to use the hardening features. Reduce redundancy in the macro calls by just setting the flag that was just tested. Also, disable hardening for mingw, since its trying to use a libssp-0.dll file that I can't find right now. The detected hardening flags break mingw builds currently.
* configure.ac: use executable hardening where availableJim Barlow2014-12-232-0/+147
Where available, enable stack smashing protection, fortify source, no-strict-overflow, and read only relocations. Many Linux distributions automatically enable most of these options. They are no brainers. The difference introduced here is in asking for a few more aggressive options. An option to disable the more aggressive options is provided (--disable-hardening). When set, configure will fall back to the default CFLAGS on the system - in many cases that will still be hardened. There is no point in going further than that. Options enabled are: -fstack-protector-strong is a relatively new GCC-4.9 feature that is supposed to give a better balance between performance and protection. -all is considered too aggressive, but was used in Chromium and other security critical systems until -strong became available. Follow their lead and use -strong when possible. clang 6.0 supports -all but not -strong. _FORTIFY_SOURCE replaces certain unsafe C str* and mem* functions with more robust equivalents when the compiler can determine the length of the buffers involved. -fno-strict-overflow instructs GCC to not make optimizations based on the assumption that signed arithmetic will wrap around on overflow (e.g. (short)0x7FFF + 1 == 0). This prevents the optimizer from doing some unexpected things. Further improvements should trap signed overflows and reduce the use of signed to refer to naturally unsigned quantities. I did not set -fPIE (position independent executables). The critical function of Open/LibreSSL is as a library, not an executable. Tested on Ubuntu Linux 14.04.1 LTS, OS X 10.10.1 with "make check". Signed-off-by: Jim Barlow <jim@purplerock.ca>