Commit 8b01bb5
Compile FIPS 140 integrity check only when building shared library
When leancrypto is compiled as a static library with
-Ddefault_library=static, it fails with:
```
../internal/src/fips_integrity_checker_elf.c:77:10: fatal error: fips_integrity_checker_values.h: No such file or directory
77 | #include "fips_integrity_checker_values.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Given the FIPS 140 integrity check only works with shared library, as
it utilizes the ELF sections, this adds an extra check on
build_shared to avoid the compilation error.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Signed-off-by: Stephan Mueller <smueller@chronox.de>1 parent 54dd21d commit 8b01bb5
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
634 | 638 | | |
635 | 639 | | |
636 | 640 | | |
| |||
650 | 654 | | |
651 | 655 | | |
652 | 656 | | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
| 674 | + | |
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| |||
0 commit comments