nixpkgs/pkgs/tools/networking/strongswan
Falco Peijnenburg 9c61571f1a Strongswan: enable rdrand and aes-ni only on X86
Strongswan fails to compile on armv7l-linux with `--enable-aesni` and  `--enable-rdrand` enabled. Errors are thrown about impossible constraints in asm (`--enable-rdrand`) or about gcc getting unknown command line parameters about aes (`--enable-aesni`). The options only makes sense on X86_64 processors.

The rdrand plugin is designed for Ivy Bridge processors:

> High quality / high performance random source using the Intel rdrand instruction found on Ivy Bridge processors

The aes-ni plugin also only exists on X86 processors (which have the AES instruction set)

Tested with a local override. The change triggers a (successful) rebuild on my X86_64 system. On armv7-linux this change fixes build errors.

See: 
https://wiki.strongswan.org/issues/337
2016-12-31 14:26:17 +01:00
..
default.nix Strongswan: enable rdrand and aes-ni only on X86 2016-12-31 14:26:17 +01:00
ext_auth-path.patch Strongswan: preserve PATH 2014-12-22 20:20:58 +00:00
firewall_defaults.patch Strongswan: use full path to ipsec 2014-12-22 20:20:15 +00:00
updown-path.patch Strongswan: preserve PATH 2014-12-22 20:20:58 +00:00