3
0
Fork 0
forked from mirrors/nixpkgs

* Some hackery to get e2fsprogs to build on x86_64 with dietlibc.

svn path=/nixpkgs/trunk/; revision=7758
This commit is contained in:
Eelco Dolstra 2007-01-22 22:10:14 +00:00
parent 1c4dd40460
commit 44a1817bef
3 changed files with 12 additions and 1 deletions

View file

@ -28,5 +28,10 @@ stdenv.mkDerivation {
# from 0.31 CVS.
./dns64.patch
# Get lseek64 working on x86_64. From
# http://svn.annvix.org/cgi-bin/viewvc.cgi/packages/releases/2.0-CURRENT/dietlibc/SOURCES
./x86_64-lseek64.patch
#./x86_64-stat64.patch
];
}

View file

@ -0,0 +1,6 @@
--- dietlibc-0.27/x86_64/lseek64.S.x86_64-lseek64 2005-03-29 08:46:09.074515293 -0500
+++ dietlibc-0.27/x86_64/lseek64.S 2005-03-29 08:46:09.074515293 -0500
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall_weak(lseek,lseek64,__libc_lseek64)

View file

@ -15,5 +15,5 @@ stdenv.mkDerivation {
preInstall = "installFlagsArray=('LN=ln -s')";
postInstall = "make install-libs";
NIX_CFLAGS_COMPILE =
if stdenv ? isDietLibC then "-UHAVE_SYS_PRCTL_H" else "";
if stdenv ? isDietLibC then "-UHAVE_SYS_PRCTL_H -DHAVE_LSEEK64_PROTOTYPE=1 -Dstat64=stat" else "";
}