From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26345 invoked by alias); 12 Sep 2016 17:38:36 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39298 Received: (qmail 15562 invoked from network); 12 Sep 2016 17:38:36 -0000 X-Qmail-Scanner-Diagnostics: from mail-pf0-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.192.170):SA:0(0.0/5.0):. Processed in 0.120016 secs); 12 Sep 2016 17:38:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=AcuzMWfH5qJ2BHKCjs887Hdny7cO5N1kozKbKdBSzGA=; b=Q3UGIwrxnE5amGygCnM5Y8zR9DIwgGEvuTEb0c4D9PRq6o8/zIw1b1ofH7AY7wL6Bo 20E06QzxgrFUp1ZjlwcBPqDA9+o5WX2t8Bhlu7gZiL7UOwGi2P8GEI0UMe/aFUINRL0U TCemSxl+Y+UOXCwAJwn8rL2E6twRf0/KGN/ikgcwhwL6Zjbc/w8W5iWSJVPwS+1dxEeA y3FJqRMUGgJqXUT5OIdXaFc/8JHFqA0iJjLiesBe2Tzz/ViGMyaYyOURatT5rmFvg4ir aNNBll9yT5kNgNAZEzeo4Oab+REsLO2ATQjPcUrIBYvhjtP0R1BoVU+RDfZCXsFOhJGl 1MOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=AcuzMWfH5qJ2BHKCjs887Hdny7cO5N1kozKbKdBSzGA=; b=WosPZ2nY7EM37PGv82O2bFWq1rU/fVN7I2KO/42R8/O72k0GbPxU8tWLFme3aorE4s GPZ2bFBUfWnqPQ/HeBuLztFM8v4oayUOsuFSfH96aS7MBR2wGrPaAvF6IbpmYHchaovQ vNeatGkebtTfuTs8KOkZDGg8QhY9isg/BiTinyyVqr3Tifp//PCHBrbrO48fRzQLxR7W XmNchPesjUtP+dN36IgauBS06upYpKWCy79ShGmVfBgk24hlABwgMMjv+ZfZE1BFhk8e NhYQnlJp+N4JyzCN/FHevSzENhWYp78mxwSkvxLBpM5jKXRa5BAw/itPk0/hkH0bg2EE carw== X-Gm-Message-State: AE9vXwNXd88hevTg8OUWeeXsOWjB39DoAF5FvI5S5EtR9Jw1XYCuW70FzanUzBedz/kAtA== X-Received: by 10.98.133.202 with SMTP id m71mr22728071pfk.155.1473701912293; Mon, 12 Sep 2016 10:38:32 -0700 (PDT) From: Bart Schaefer Message-Id: <160912103839.ZM25202@torch.brasslantern.com> Date: Mon, 12 Sep 2016 10:38:39 -0700 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Adding (compiling) a module to already build Zsh" (Sep 12, 8:12am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: Adding (compiling) a module to already build Zsh MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 12, 8:12am, Sebastian Gniazdowski wrote: } } on IRC someone asked how to "add gdbm". I wonder if the module can be } easily added to already installed Zsh, if it's not already bundled? It should be possible to do this provided that (a) the zsh source matching the installed binary is available to compile against and (b) the installed binary was compiled with dynamic linkage enabled. What won't work is any automatic autoloads of the builtins etc. from any module added later. I can't think of a reason explicit "zmodload" wouldn't work, though, assuming the .so file was in a $module_path directory.