shithub: openh264

Download patch

ref: 51c121f947747699c6540b170808eb7f6a0dd994
parent: e307cbb6a1c426e2dbb23054d02d6ebdaaa559c7
author: Rupert Muchembled <[email protected]>
date: Mon Dec 16 02:10:26 EST 2013

Add FreeBSD platform makefile

Add platform-freebsd.mk makefile to allow building on FreeBSD.

OpenH264 builds and runs successfully on FreeBSD 9.2-RELEASE amd64, with both
the gcc and clang compilers.

Note that building i386 binaries with the native toolchain using the -m32 flag
on amd64 FreeBSD is unsupported and will not work, so ENABLE64BIT should always
be set to Yes when compiling on a FreeBSD amd64 system.

--- /dev/null
+++ b/build/platform-freebsd.mk
@@ -1,0 +1,5 @@
+ASM = nasm
+CFLAGS += -fPIC
+LDFLAGS += -lpthread
+ASMFLAGS += -f elf
+