Index: libopencsd-1.5.5/decoder/build/linux/makefile
===================================================================
--- libopencsd-1.5.5.orig/decoder/build/linux/makefile
+++ libopencsd-1.5.5/decoder/build/linux/makefile
@@ -41,4 +41,10 @@ export PLATFORM_LDFLAGS := -Wl,-z,defs
 export SONAME_FLAG := -soname
 export SHARED_LIB_SUFFIX := so
 
-include ../unix_common/makefile.common
+# Set project root - relative to build makefile
+ifeq ($(OCSD_ROOT),)
+OCSD_ROOT := $(shell echo $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) | sed 's,/build/linux.*,,')
+export OCSD_ROOT
+endif
+
+include $(OCSD_ROOT)/build/unix_common/makefile.common
