pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

jemalloc: don't hardcode shared library suffix



Module Name:	pkgsrc-wip
Committed By:	Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By:	tnn
Date:		Sat Oct 24 19:07:42 2015 +0200
Changeset:	0d27f89cac4af406ad067376ca98305005ec3c61

Modified Files:
	jemalloc/Makefile
	jemalloc/PLIST

Log Message:
jemalloc: don't hardcode shared library suffix

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0d27f89cac4af406ad067376ca98305005ec3c61

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 jemalloc/Makefile | 9 +++++++++
 jemalloc/PLIST    | 4 ++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diffs:
diff --git a/jemalloc/Makefile b/jemalloc/Makefile
index b7e1f1d..20faf50 100644
--- a/jemalloc/Makefile
+++ b/jemalloc/Makefile
@@ -25,6 +25,15 @@ REPLACE_PERL=		bin/jepprof
 
 BUILD_TARGET=		all dist
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+SOEXT=			dylib
+.else
+SOEXT=			so
+.endif
+PLIST_SUBST+=		SOEXT=${SOEXT}
+
 pre-configure:
 	cd ${WRKSRC} && ./autogen.sh
 	cd ${WRKSRC} && mv bin/pprof bin/jepprof
diff --git a/jemalloc/PLIST b/jemalloc/PLIST
index 71e9387..f8e950a 100644
--- a/jemalloc/PLIST
+++ b/jemalloc/PLIST
@@ -2,9 +2,9 @@
 bin/jemalloc.sh
 bin/jepprof
 include/jemalloc/jemalloc.h
-lib/libjemalloc.1.dylib
+lib/libjemalloc.1.${SOEXT}
 lib/libjemalloc.a
-lib/libjemalloc.dylib
+lib/libjemalloc.${SOEXT}
 lib/libjemalloc_pic.a
 man/man3/jemalloc.3
 share/doc/jemalloc/jemalloc.html


Home | Main Index | Thread Index | Old Index