--- arbsrc_8210.orig/Makefile
+++ arbsrc_8210/Makefile
@@ -58,7 +58,8 @@
 	4.1.1 4.1.2 4.1.3 \
 	4.2.0 4.2.1 4.2.3 4.2.4 \
 	4.3 4.3.1 4.3.2 4.3.3 \
-	4.4.1 4.4.3 \
+	4.4.1 4.4.3 4.4.5 \
+	4.6
 
 ALLOWED_GCC_VERSIONS=$(ALLOWED_GCC_3xx_VERSIONS) $(ALLOWED_GCC_4xx_VERSIONS)
 
@@ -95,7 +96,12 @@
 	dflags := -DNDEBUG# defines
 	cflags := -O4# compiler flags (C and C++)
  ifndef DARWIN
-	lflags += -O99 --strip-all# linker flags
+	ifdef DEBIAN
+		lflags += -O2 -Wl,-rpath=/usr/lib/arb/lib # linker flags
+		# remark:  --strip-all option breaks g++ 4.6 and it's unwanted anyway
+	else
+		lflags += -O99 --strip-all# linker flags
+	endif
  endif
 endif
 
@@ -199,7 +205,11 @@
 
 #---------------------- X11 location
 
-XHOME:=/usr/X11R6
+ifdef DEBIAN
+	XHOME:=/usr
+else
+	XHOME:=/usr/X11R6
+endif
 XINCLUDES:=-I$(XHOME)/include
 
 ifdef DARWIN
@@ -304,7 +314,7 @@
 
 lflags += $(ldynamic)
 
-LINK_STATIC_LIB := ld $(lflags) -r -o# link static lib
+LINK_STATIC_LIB := ld -rpath=/usr/lib/arb/lib -r -o# link static lib
 LINK_EXECUTABLE := $(GPP) $(lflags) $(cdynamic) -o# link executable (c++)
 
 ifeq ($(LINK_STATIC),1)
