summary refs log tree commit diff
path: root/pkgs/servers/gpm
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-11-29 23:51:24 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-11-29 23:51:24 +0000
commitf7cfcbd1f9bddb8ad6f99c9e8cb1a91ff5dd30ac (patch)
tree0514e521c0adf7ecc69b430c6f935f7a6762a39a /pkgs/servers/gpm
parentebe1ebaba8c0baa1db9691a8c97acf0f7a1fbe89 (diff)
downloadnixpkgs-f7cfcbd1f9bddb8ad6f99c9e8cb1a91ff5dd30ac.tar
nixpkgs-f7cfcbd1f9bddb8ad6f99c9e8cb1a91ff5dd30ac.tar.gz
nixpkgs-f7cfcbd1f9bddb8ad6f99c9e8cb1a91ff5dd30ac.tar.bz2
nixpkgs-f7cfcbd1f9bddb8ad6f99c9e8cb1a91ff5dd30ac.tar.lz
nixpkgs-f7cfcbd1f9bddb8ad6f99c9e8cb1a91ff5dd30ac.tar.xz
nixpkgs-f7cfcbd1f9bddb8ad6f99c9e8cb1a91ff5dd30ac.tar.zst
nixpkgs-f7cfcbd1f9bddb8ad6f99c9e8cb1a91ff5dd30ac.zip
Making gpm generate proper files in $out/lib, that allow good cross-linking. I
had to do this to get the FB driver in links2 - it wants gpm to build, and
without these changes, the "-lgpm" did not work.


svn path=/nixpkgs/branches/stdenv-updates/; revision=24932
Diffstat (limited to 'pkgs/servers/gpm')
-rw-r--r--pkgs/servers/gpm/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/servers/gpm/default.nix b/pkgs/servers/gpm/default.nix
index 9ae20cd2c13..cb664eac253 100644
--- a/pkgs/servers/gpm/default.nix
+++ b/pkgs/servers/gpm/default.nix
@@ -15,7 +15,16 @@ stdenv.mkDerivation rec {
     ''
       sed -e 's/[$](MKDIR)/mkdir -p /' -i doc/Makefile.in
     '';
-      
+
+  # Its configure script does not allow --disable-static
+  # Disabling this, we make cross-builds easier, because having
+  # cross-built static libraries we either have to disable stripping
+  # or fixing the gpm users, because there -lgpm will fail.
+  postInstall = ''
+    rm -f $out/lib/*.a
+    ln -s $out/lib/libgpm.so.2 $out/lib/libgpm.so
+  '';
+
   meta = {
     homepage = http://www.nico.schottelius.org/software/gpm/;
     description = "A daemon that provides mouse support on the Linux console";