--- EMULib/Rules.Unix.orig 2014-01-30 23:32:06.000000000 +0700 +++ EMULib/Rules.Unix 2014-01-30 23:30:52.000000000 +0700 @@ -6,7 +6,7 @@ include ../../EMULib/Rules.gcc -CFLAGS += -I$(EMULIB)/Unix -I/usr/X11R6/include +CFLAGS += -I$(EMULIB)/Unix -I${LOCALBASE}/include $(DEBUG_FLAGS) DEFINES+= -DUNIX -DMITSHM -DBPS16 -LIBS += -lX11 -lXext +LIBS += -L${LOCALBASE}/lib -lX11 -lXext OBJECTS+= $(EMUUNIX)