[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#640159: iozone3: FTBFS(kfreebsd): patch for building



Package: src:iozone3
Version: 397-1
Severity: important
User: debian-bsd@lists.debian.org
Usertags: kfreebsd-porting
X-Debbugs-Cc: debian-bsd@lists.debian.org

Hi!

The following patch allows iozone3 to build on kfreebsd-*:

diff -Nru iozone3-397/debian/rules iozone3-397/debian/rules
--- iozone3-397/debian/rules	2011-01-04 06:37:21.000000000 +0100
+++ iozone3-397/debian/rules	2011-09-03 00:33:08.000000000 +0200
@@ -2,7 +2,7 @@
 
 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
-target = linux
+target = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 ifeq ($(DEB_HOST_ARCH), arm)
 target = linux-arm
 else ifeq ($(DEB_HOST_ARCH), amd64)
--- iozone3-397.orig/src/current/makefile
+++ iozone3-397/src/current/makefile
@@ -471,6 +471,12 @@ freebsd:	iozone_freebsd.o libbif.o fileo
 	$(CC)  -O fileop_freebsd.o -o fileop
 	$(CC)  -O pit_server.o -o pit_server
 
+kfreebsd:        iozone_freebsd.o libbif.o fileop_freebsd.o libasync.o pit_server.o
+	$(CC) $(LDFLAGS) iozone_freebsd.o libbif.o -lpthread -lrt libasync.o \
+	        -o iozone
+	$(CC)  -O fileop_freebsd.o -o fileop
+	$(CC)  -O pit_server.o -o pit_server
+
 #
 # GNU C compiler DragonFly build with no threads, no largefiles
 #


Regards

    Christoph

If you have further questions please mail debian-bsd@lists.debian.org

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer



Reply to: