Index: libopencsd-0.8.3~pre/decoder/build/linux/makefile
===================================================================
--- libopencsd-0.8.3~pre.orig/decoder/build/linux/makefile
+++ libopencsd-0.8.3~pre/decoder/build/linux/makefile
@@ -33,9 +33,9 @@
 # DEBUG=1 	    create a debug build
 #
 
-# Set project root - relative to build directory
+# Set project root - relative to build makefile
 ifeq ($(OCSD_ROOT),)
-OCSD_ROOT := $(shell pwd | sed 's,/build/linux.*,,')
+OCSD_ROOT := $(shell echo $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) | sed 's,/build/linux.*,,')
 export OCSD_ROOT
 endif
 
