X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9dbaa1f22054ff5492e793259d5641b876b57ac1..21c054c70c5ad524a0e42ce0e644d9058ee2d020:/projects/rscriptd/Makefile

diff --git a/projects/rscriptd/Makefile b/projects/rscriptd/Makefile
index 2b7395a3..a4e2a557 100644
--- a/projects/rscriptd/Makefile
+++ b/projects/rscriptd/Makefile
@@ -10,17 +10,21 @@ SRCS = ./main.cpp \
        ./listener.cpp \
        ./pidfile.cpp
 
-STGLIBS =  logger \
-	   locker \
-           common \
-	   crypto \
-           scriptexecuter \
-           conffiles
+STGLIBS = scriptexecuter \
+          conffiles \
+	  logger \
+	  locker \
+	  crypto \
+          common
 
 STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
 STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
 
-LIBS += $(LIB_THREAD) $(addprefix -lstg,$(STGLIBS))
+LIBS += $(addprefix -lstg,$(STGLIBS)) $(LIB_THREAD)
+
+ifneq ($(OS),linux)
+LIBS += -liconv
+endif
 
 SEARCH_DIRS = -I ../../include
 
@@ -86,5 +90,3 @@ deps:	$(SRCS) ../../Makefile.conf
 	  echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\
 	  echo -e '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\
 	done
-
-