Skip to content

Commit

Permalink
INSTALL: Update codesigning, prepare for v43
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed Aug 18, 2023
1 parent 3a8c546 commit 87ba753
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Kcov (43):

-- Simon Kagstrom <[email protected]>


Kcov (42):
* Issue #317: Correct handling of large amounts of solib data (Steven Lu)

Expand Down
19 changes: 11 additions & 8 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,27 @@ brew install zlib bash cmake pkgconfig dwarfutils openssl

OSX build instructions (see Issue #166 / Issue #357):

First get a code signing identity, since debug support is needed to run as non-root:

```
security find-identity
export IDENTITY="Apple Development: <[email protected]> (XXXXXXXX)"
```

Create an empty build dir and do the following steps (adjust openssl path, can also be in /opt):

```
cd <build-dir>
cmake -G Xcode -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib <path/to/kcov/source/dir>
xcodebuild -target kcov -configuration Release
codesign -s "$IDENTITY" --entitlements <path/to/kcov/source/dir>/osx-entitlements.xml -f ./src/Release/kcov
```

The binary will be `src/Release/kcov`

If the binary needs to be signed, try these instructions:

First get a code signing identity, since debug support is needed to run as non-root:

```
security find-identity
export IDENTITY="Apple Development: <[email protected]> (XXXXXXXX)"
codesign -s "$IDENTITY" --entitlements <path/to/kcov/source/dir>/osx-entitlements.xml -f ./src/Release/kcov
```

Building
========

Expand Down

0 comments on commit 87ba753

Please sign in to comment.