The urweb compiler was not able to produce statically linked executables 
because the Nix expression was not building static libraries.

This patch also builds the needed static libraries, allowing the -static 
option to the urweb compiler to work as it should.
From eca78b40f428401432a642c02317880fbc853989 Mon Sep 17 00:00:00 2001
From: Karn Kallio <kkal...@eka.(none)>
Date: Sun, 14 Nov 2010 00:57:23 -0430
Subject: [PATCH] Build static libraries to enable the urweb -static flag.

In order to allow the urweb compiler "-static" flag to work,
we must build the static libraries.
---
 pkgs/development/compilers/urweb/default.nix |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pkgs/development/compilers/urweb/default.nix b/pkgs/development/compilers/urweb/default.nix
index b88df77..a691208 100644
--- a/pkgs/development/compilers/urweb/default.nix
+++ b/pkgs/development/compilers/urweb/default.nix
@@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
       export GCCARGS="-I${mysql}/include/mysql -I${postgresql}/include -I${sqlite}/include -L${libmhash}/lib -L${mysql}/lib/mysql -L${postgresql}/lib -L${sqlite}/lib"
     '';
 
+  configureFlags = "--enable-static=yes";
+
   meta = {
     description = "Ur/Web supports construction of dynamic web applications backed by SQL databases.";
     longDescription = ''
-- 
1.7.3.2

_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to