[GH-ISSUE #209] Hardcoded -install_name prefix on macOS #171

Closed
opened 2026-05-05 11:49:56 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @sjmulder on GitHub (Dec 12, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/209

Originally assigned to: @jmcnamara on GitHub.

(Relates to #205)

src/Makefile has this bit:

# Change make options on OS X.
ifeq ($(UNAME), Darwin)
LIBXLSXWRITER_SO = libxlsxwriter.dylib
SOFLAGS = -dynamiclib $(FPIC) -install_name /usr/lib/$(LIBXLSXWRITER_SO)
endif

This is incorrect when building with another prefix. pkgsrc happens to have a check for this and signals an error:

=> Checking for missing run-time search paths in libxlsxwriter-0.8.4
ERROR: lib/libxlsxwriter.dylib: missing library: /usr/lib/libxlsxwriter.dylib

Should be /opt/pkg/lib/libxlsxwriter.dylib in my case.

I'd say this should be changed to $(PREFIX)/lib/$(LIBXLSXWRITER_SO) but I'm not familiar with macOS' dynamic linker.

Originally created by @sjmulder on GitHub (Dec 12, 2018). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/209 Originally assigned to: @jmcnamara on GitHub. (Relates to #205) `src/Makefile` has this bit: # Change make options on OS X. ifeq ($(UNAME), Darwin) LIBXLSXWRITER_SO = libxlsxwriter.dylib SOFLAGS = -dynamiclib $(FPIC) -install_name /usr/lib/$(LIBXLSXWRITER_SO) endif This is incorrect when building with another prefix. pkgsrc happens to have a check for this and signals an error: => Checking for missing run-time search paths in libxlsxwriter-0.8.4 ERROR: lib/libxlsxwriter.dylib: missing library: /usr/lib/libxlsxwriter.dylib Should be `/opt/pkg/lib/libxlsxwriter.dylib` in my case. I'd say this should be changed to `$(PREFIX)/lib/$(LIBXLSXWRITER_SO)` but I'm not familiar with macOS' dynamic linker.
gitea-mirror 2026-05-05 11:49:56 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jmcnamara commented on GitHub (Feb 12, 2019):

Closing. Superseded by #216

<!-- gh-comment-id:462696368 --> @jmcnamara commented on GitHub (Feb 12, 2019): Closing. Superseded by #216
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#171
No description provided.