* Patch for getting dynamic libraries to build on Mac OS X 10.5.

svn path=/nixpkgs/trunk/; revision=9943
This commit is contained in:
Eelco Dolstra 2007-12-14 21:39:52 +00:00
parent ae979c46a9
commit 1b3aa6482d
2 changed files with 12 additions and 0 deletions

View file

@ -7,4 +7,5 @@ stdenv.mkDerivation {
md5 = "e39331f32ad14009b9ff49cc10c5e751";
};
propagatedBuildInputs = [ncurses];
patches = stdenv.lib.optional stdenv.isDarwin ./shobj-darwin.patch;
}

View file

@ -0,0 +1,11 @@
--- a/support/shobj-conf.orig 2006-04-11 06:15:43.000000000 -0700
+++ b/support/shobj-conf 2007-11-08 01:15:43.000000000 -0800
@@ -171,7 +171,7 @@
SHLIB_LIBSUFF='dylib'
case "${host_os}" in
- darwin[78]*) SHOBJ_LDFLAGS=''
+ darwin[789]*) SHOBJ_LDFLAGS=''
SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
;;
*) SHOBJ_LDFLAGS='-dynamic'