Package: src:leveldb
Version: 0+20110901.git7263023-1
Severity: important
User: [email protected]
Usertags: kfreebsd-porting
X-Debbugs-Cc: [email protected]

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 [email protected]

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



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to