Package: src:leveldb
Version: 0+20110901.git7263023-1
Severity: important
User: debian-...@lists.debian.org
Usertags: kfreebsd-porting
X-Debbugs-Cc: debian-...@lists.debian.org

Hi!

The following patch against the packaging git head enables leveldb to
build on kfreebsd and pass all tests:

--- a/build_detect_platform
+++ b/build_detect_platform
@@ -35,6 +35,11 @@ case `uname -s` in
         echo "PLATFORM_CFLAGS=-D_REENTRANT -DOS_FREEBSD"  >> build_config.mk
         echo "PLATFORM_LDFLAGS=-lpthread" >> build_config.mk
         ;;
+    GNU/kFreeBSD)
+        PLATFORM=OS_FREEBSD
+        echo "PLATFORM_CFLAGS=-pthread -DOS_FREEBSD"  >> build_config.mk
+        echo "PLATFORM_LDFLAGS=-lpthread -lrt" >> build_config.mk
+        ;;
     *)
         echo "Unknown platform!"
         exit 1


Regards

    Christoph

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

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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to