--- Makefile.ref 2006-07-26 21:16:47.000000000 +0200 +++ Makefile.ref 2008-06-18 17:43:04.000000000 +0200 @@ -335,8 +335,8 @@ $(PROGRAM): $(PROG_OBJS) $(LIBRARY) link.exe -out:"$@" $(EXE_LINK_FLAGS) $^ else -$(PROGRAM): $(PROG_OBJS) $(LIBRARY) - $(CC) -o $@ $(CFLAGS) $(PROG_OBJS) $(LIBRARY) $(LDFLAGS) $(OTHER_LIBS) \ +$(PROGRAM): $(PROG_OBJS) $(SHARED_LIBRARY) + $(CC) -o $@ $(CFLAGS) $(PROG_OBJS) -L$(OBJDIR) -ljs $(LDFLAGS) $(OTHER_LIBS) \ $(PROG_LIBS) endif