Browse code

sercmd: fix LIBS when installing from a module

Don't rely on LIBS having a valid value, since we might get called
from a module Makefile. Use needed libs in function of $(OS).

Andrei Pelinescu-Onciul authored on 04/12/2009 16:39:46
Showing 1 changed files
... ...
@@ -24,7 +24,15 @@ endif #ifneq (,$(MAKECMDGOALS))
24 24
 C_DEFS:=
25 25
 DEFS:= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' \
26 26
 		$(filter -D%HAVE -DARCH% -DOS% -D__CPU% -D__OS%, $(DEFS))
27
-LIBS:=$(filter-out -lfl  -ldl -lpthread -lssl -lcrypto, $(LIBS))
27
+
28
+# use proper libs (we can't rely on LIBS value since we might be called
29
+# from a module Makefile)
30
+#LIBS:=$(filter-out -lfl  -ldl -lpthread -lssl -lcrypto, $(LIBS))
31
+
32
+LIBS:= -lresolv
33
+ifeq  ($(OS), solaris)
34
+	LIBS+= -L$(LOCALBASE)/lib -lxnet -lnsl
35
+endif
28 36
 
29 37
 ifeq ($(use_readline),)
30 38
 readline_path := $(shell  \