mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
* Some hackery to get e2fsprogs to build on x86_64 with dietlibc.
svn path=/nixpkgs/trunk/; revision=7758
This commit is contained in:
parent
1c4dd40460
commit
44a1817bef
@ -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
|
||||
|
||||
];
|
||||
}
|
||||
|
6
pkgs/os-specific/linux/dietlibc/x86_64-lseek64.patch
Normal file
6
pkgs/os-specific/linux/dietlibc/x86_64-lseek64.patch
Normal 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)
|
@ -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 "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user