diff options
author | grant <grant> | 2004-01-26 12:10:24 +0000 |
---|---|---|
committer | grant <grant> | 2004-01-26 12:10:24 +0000 |
commit | 17764cab41bc8b6c3442ab8380e78292206a7a2b (patch) | |
tree | 3198bcaa9e4d49eafc4a2fa102be1053cbfba817 /lang/python23/patches | |
parent | fb3e829cb2cfe7790d0550befbbcf9cdfbed81b2 (diff) | |
download | pkgsrc-17764cab41bc8b6c3442ab8380e78292206a7a2b.tar.gz |
fix build and install on Solaris:
- use -h instead of -soname= when creating shared objects to appease
Solaris linker.
- link against librt for fdatasync().
- tweak PLIST for installed modules.
Diffstat (limited to 'lang/python23/patches')
-rw-r--r-- | lang/python23/patches/patch-ah | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lang/python23/patches/patch-ah b/lang/python23/patches/patch-ah index fc71f6a103b..025f4e92ffc 100644 --- a/lang/python23/patches/patch-ah +++ b/lang/python23/patches/patch-ah @@ -1,6 +1,6 @@ -$NetBSD: patch-ah,v 1.1 2003/12/08 21:13:56 recht Exp $ +$NetBSD: patch-ah,v 1.2 2004/01/26 12:10:24 grant Exp $ ---- Makefile.pre.in.orig 2003-09-20 12:50:28.000000000 +0200 +--- Makefile.pre.in.orig 2003-11-19 06:54:00.000000000 +1100 +++ Makefile.pre.in @@ -56,7 +56,7 @@ MAKESETUP= $(srcdir)/Modules/makese OPT= @OPT@ @@ -20,3 +20,12 @@ $NetBSD: patch-ah,v 1.1 2003/12/08 21:13:56 recht Exp $ platform: $(BUILDPYTHON) $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform +@@ -345,7 +345,7 @@ $(LIBRARY): $(LIBRARY_OBJS) + + libpython$(VERSION).so: $(LIBRARY_OBJS) + if test $(INSTSONAME) != $(LDLIBRARY); then \ +- $(LDSHARED) -Wl,-soname=$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \ ++ $(LDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \ + $(LN) -f $(INSTSONAME) $@; \ + else\ + $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \ |