|
@@ -24,7 +24,15 @@ endif #ifneq (,$(MAKECMDGOALS))
|
|
|
C_DEFS:=
|
|
|
DEFS:= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' \
|
|
|
$(filter -D%HAVE -DARCH% -DOS% -D__CPU% -D__OS%, $(DEFS))
|
|
|
-LIBS:=$(filter-out -lfl -ldl -lpthread -lssl -lcrypto, $(LIBS))
|
|
|
+
|
|
|
+# use proper libs (we can't rely on LIBS value since we might be called
|
|
|
+# from a module Makefile)
|
|
|
+#LIBS:=$(filter-out -lfl -ldl -lpthread -lssl -lcrypto, $(LIBS))
|
|
|
+
|
|
|
+LIBS:= -lresolv
|
|
|
+ifeq ($(OS), solaris)
|
|
|
+ LIBS+= -L$(LOCALBASE)/lib -lxnet -lnsl
|
|
|
+endif
|
|
|
|
|
|
ifeq ($(use_readline),)
|
|
|
readline_path := $(shell \
|