diff --git a/builds/posix/Makefile.in b/builds/posix/Makefile.in index 5ffb4ef375..7917c32bc1 100644 --- a/builds/posix/Makefile.in +++ b/builds/posix/Makefile.in @@ -534,7 +534,7 @@ $(GSTAT): $(GSTAT_Objects) $(COMMON_LIB) isql: $(ISQL) $(ISQL): $(ISQL_Objects) $(COMMON_LIB) - $(EXE_LINK) $(EXE_LINK_OPTIONS) $^ -o $@ $(FIREBIRD_LIBRARY_LINK) $(LIBEDITLINE) $(LINK_LIBS) $(call LINK_DARWIN_RPATH,..) + $(EXE_LINK) $(EXE_LINK_OPTIONS) $^ -o $@ $(FIREBIRD_LIBRARY_LINK) $(LIBEDITLINE) $(TERMLIB) $(LINK_LIBS) $(call LINK_DARWIN_RPATH,..) nbackup: $(NBACKUP) diff --git a/builds/posix/make.defaults b/builds/posix/make.defaults index e884b7aced..6dfd3ab118 100755 --- a/builds/posix/make.defaults +++ b/builds/posix/make.defaults @@ -256,6 +256,7 @@ ifeq ($(EDITLINE_FLG),Y) else LIBEDITLINE := $(LIB)/libedit.a endif + TERMLIB := -l@TERMLIB@ endif # Shared library name for usage inside of the UDF diff --git a/configure.ac b/configure.ac index 483805daf2..e495a56619 100644 --- a/configure.ac +++ b/configure.ac @@ -868,7 +868,6 @@ if test "$EDITLINE_FLG" = "Y"; then AC_CHECK_LIB(tinfo, tgetent, TERMLIB=tinfo, \ AC_MSG_ERROR(termcap support not found))))) AC_SUBST(TERMLIB) - XE_APPEND(-l$TERMLIB, LIBS) fi AC_SEARCH_LIBS(inet_aton, resolv)