• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

xlnt-community / xlnt / 4b5fed6e-c4d0-4ab7-aaf5-fdf02e395ff5
84%

Build:
DEFAULT BRANCH: master
Ran 15 Jan 2026 09:00PM UTC
Jobs 1
Files 116
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jan 2026 08:57PM UTC coverage: 82.718%. Remained the same
4b5fed6e-c4d0-4ab7-aaf5-fdf02e395ff5

push

circleci

web-flow
enable relocatable build for Mac (#129)

By default, setting `INSTALL_NAME_DIR` to `$XLNT_LIB_DEST_DIR` will
result in a relative path being baked into the `.dylib` file. This can
be verified with `otool -D xlnt.dylib`.

That means that when you try to to compile and run a test program, it
will fail at runtime:

```
dyld[25352]: Library not loaded: lib/libxlnt-1.6.1.dylib
...
  Reason: tried 'lib/libxlnt.1.6.1.dylib' (no such file) [...]
```

The solution that Apple likes is to use
[rpath](https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/RunpathDependentLibraries.html),
creating a relocatable library, where the consumer uses the
`-Wl,-rpath,/some/prefix/lib` options and the dynamic linker will look
in that directory at runtime. A prefix using the string `@rpath` ends up
baked into the binary.

This means that, after installing xlnt with the default build options,
options to build the demo program would look like:

`-std=c++14 -Ixlnt/include -lxlnt -Wl,-rpath,/usr/local/lib`

Another way to fix the same problem would be to ensure that the value
for `INSTALL_NAME_DIR` was absolute rather than relative. Overall I'm
not sure which way is the best, but this one seems to be the
Apple-approved way.

14392 of 18906 branches covered (76.12%)

11837 of 14310 relevant lines covered (82.72%)

10730.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4b5fed6e-c4d0-4ab7-aaf5-fdf02e395ff5.1 15 Jan 2026 09:00PM UTC 116
82.72
Source Files on build 4b5fed6e-c4d0-4ab7-aaf5-fdf02e395ff5
  • Tree
  • List 116
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #4B5FED6E...
  • 60552675 on github
  • Prev Build on master (#0D4A4631...)
  • Next Build on master (#0BEB586F...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc