Commit e40108a
committed
Fix postgresql-musl dev↔lib reference cycle
The postgresql multi-output build for musl cross-compilation fails with:
error: cycle detected in build of '...-postgresql-aarch64-unknown-linux-musl-17.7.drv'
in the references of output 'dev' from output 'lib'
The lib output picks up references to dev through .la files (libtool
archives with baked-in -I/-L paths) and possibly .pc files. Since dev
already references lib (for -L flags in pkgconfig), this creates a cycle.
Fix by adding postFixup that:
1. Deletes .la files from lib (unnecessary for runtime, embed dev paths)
2. Strips remaining dev references from lib via remove-references-to1 parent b39884c commit e40108a
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
180 | 184 | | |
181 | 185 | | |
182 | 186 | | |
| |||
0 commit comments