Commit 9ccf900
committed
build: add split-debug release and package targets
Add Makefile support for generating separate debug symbol artifacts
from release builds while keeping distributed binaries stripped.
`make release-debug-artifacts` builds `out/Release/nsolid`,
writes `out/Release/nsolid.debug`, adds a GNU debug link to the
stripped binary, and strips the release binary.
`make binary SEPARATE_DEBUG_SYMBOLS=1` passes `--debug-symbols`
to `./configure`, strips the packaged `bin/nsolid`, adds a GNU
debug link to it, and writes a separate `$(BINARYNAME).debug`
artifact for upload to debuginfod.
`make binary` keeps the previous behavior and does not generate a
separate debug symbol artifact.
Signed-off-by: Santiago Gimeno <santiago.gimeno@gmail.com>1 parent 447b0e5 commit 9ccf900
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
90 | 105 | | |
91 | 106 | | |
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
95 | 113 | | |
96 | 114 | | |
97 | 115 | | |
| |||
630 | 648 | | |
631 | 649 | | |
632 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
633 | 659 | | |
634 | 660 | | |
635 | 661 | | |
| |||
1325 | 1351 | | |
1326 | 1352 | | |
1327 | 1353 | | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1328 | 1358 | | |
1329 | 1359 | | |
1330 | 1360 | | |
| |||
0 commit comments