mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
The post‐facto install name replacement was unpredictably running out of space; just patch the build system to do the right thing instead. And don’t use `.so` on Darwin, either.
22 lines
618 B
Diff
22 lines
618 B
Diff
diff --git a/configure.in b/configure.in
|
|
index b753a5bb3e..ee7d546984 100644
|
|
--- a/configure.in
|
|
+++ b/configure.in
|
|
@@ -134,12 +134,12 @@
|
|
AC_SUBST(SHLIBFILE)
|
|
AC_SUBST(SHLIBSONAME)
|
|
|
|
-SHLIBFORLINK='libadns.so'
|
|
-SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)'
|
|
-SHLIBFILE='$(SHLIBSONAME).$(MINOR)'
|
|
+SHLIBFORLINK='libadns.dylib'
|
|
+SHLIBSONAME='libadns.$(MAJOR).dylib'
|
|
+SHLIBFILE='libadns.$(MAJOR).$(MINOR).dylib'
|
|
|
|
SHLIBCC='$(CC) $(CFLAGS) -fpic'
|
|
-MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o'
|
|
+MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-install_name,$(libdir)/$(SHLIBFILE) -o'
|
|
MKSHLIB_2=''
|
|
MKSHLIB_3='-lc'
|
|
|