Description: Fix FTBFS when DSO linking. Bug-Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=719902 Forwarded: no Last-Updated: 2013-12-07 Index: slang2-2.3.1/slsh/Makefile.in =================================================================== --- slang2-2.3.1.orig/slsh/Makefile.in +++ slang2-2.3.1/slsh/Makefile.in @@ -28,6 +28,8 @@ RPATH = @RPATH@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSDIR = $(CONFIG_DIR)/autoconf/mkinsdir.sh +DL_LIB = @DYNAMIC_LINK_LIB@ +ELF_DEP_LIBS = @ELF_DEP_LIBS@ #---------------------------------------------------------------------------- # Where system-wide slsh.rc, scripts, and library files reside #---------------------------------------------------------------------------- @@ -90,9 +92,9 @@ SOBJDIR_TSTAMP = $(SOBJDIR)/tstamp all: $(OBJDIR)/slsh_exe slsh: $(OBJDIR)/slsh $(OBJDIR)/slsh_exe: $(OBJDIR)/slsh.o $(OBJDIR)/readline.o - $(CC) $(CFLAGS) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh_exe $(LDFLAGS) $(DLINK_FLAGS) $(SRC_LIBS) + $(CC) $(CFLAGS) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh_exe $(LDFLAGS) $(DLINK_FLAGS) $(SRC_LIBS) $(ELF_DRP_LIBS) $(OBJDIR)/slsh: $(OBJDIR)/slsh.o $(OBJDIR)/readline.o - $(CC) $(CFLAGS) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh $(LDFLAGS) $(DLINK_FLAGS) $(INST_LIBS) + $(CC) $(CFLAGS) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh $(LDFLAGS) $(DLINK_FLAGS) $(INST_LIBS) $(ELF_DEP_LIBS) $(OBJDIR)/slsh.o: $(OBJDIR_TSTAMP) slsh.c slsh.h config.h Makefile cd $(OBJDIR) && $(CC) $(SLANG_SRCINC) $(CFLAGS) -c $(DEFS) $(SRCDIR)/slsh.c $(OBJDIR)/readline.o: $(OBJDIR_TSTAMP) readline.c slsh.h config.h Makefile