From 50fe945c01e6829d34258ffefc4a5a9d68a908bd Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 6 Nov 2014 14:54:40 +0100 Subject: gnu: ots: Make sure the shared library has the '.so' extension. Fixes . * gnu/packages/ots.scm (ots)[arguments]: Add #:phases. --- gnu/packages/ots.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/ots.scm b/gnu/packages/ots.scm index e317245355..1c0d4a71f4 100644 --- a/gnu/packages/ots.scm +++ b/gnu/packages/ots.scm @@ -47,7 +47,19 @@ (arguments ;; With '-jN', the rule to build the 'ots' command can be triggered ;; before libots-1.la has been built. - '(#:parallel-build? #f)) + '(#:parallel-build? #f + + #:phases (alist-cons-after + 'configure 'set-shared-lib-extension + (lambda _ + ;; For some reason, the 'libtool' script (from Libtool + ;; 1.5.2, Debian variant) sets 'shrext_cmds' instead of + ;; 'shrext' for the shared library file name extension. + ;; This leads to the creation of 'libots-1' instead of + ;; 'libots-1.so'. Fix that. + (substitute* "libtool" + (("shrext_cmds") "shrext"))) + %standard-phases))) (inputs `(("glib" ,glib) ("popt" ,popt) -- cgit v1.2.3