diff --git a/Makefile.include b/Makefile.include index b12d1e6c4..d223a7ce3 100755 --- a/Makefile.include +++ b/Makefile.include @@ -5,8 +5,8 @@ CC = g++ CXX = $(CC) ASM=$(shell echo "/lib/modules/`uname -r`/build/include") -LDFLAGDET = -L$(LIBDIR) -lSlsDetector -L/usr/lib64/ -lpthread -LDFLAGRXR = -L$(LIBDIR) -lSlsReceiver -L/usr/lib64/ -lpthread +LDFLAGDET = -L$(LIBDIR) -Wl,-rpath=$(LIBDIR) -lSlsDetector -L/usr/lib64/ -lpthread +LDFLAGRXR = -L$(LIBDIR) -Wl,-rpath=$(LIBDIR) -lSlsReceiver -L/usr/lib64/ -lpthread FLAGS= -Wall #-DEIGER_DEBUG2 -DEIGER_DEBUG -DEIGER_DEBUG3 #-DFIFO_DEBUG # -DVERBOSE