summaryrefslogtreecommitdiffhomepage
path: root/plugins/fcgi
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/fcgi')
-rw-r--r--plugins/fcgi/Makefile4
-rw-r--r--plugins/fcgi/socket.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/fcgi/Makefile b/plugins/fcgi/Makefile
index 81502c4..c597314 100644
--- a/plugins/fcgi/Makefile
+++ b/plugins/fcgi/Makefile
@@ -6,7 +6,7 @@ CXXFLAGS+= -fvisibility=hidden -fPIC
CXXFLAGS+= -I../..
-LDLIBS=\
+LDLIBS+=\
-lreichwein \
-lboost_context \
-lboost_coroutine \
@@ -30,7 +30,7 @@ SRC=$(PROGSRC)
all: $(PROJECTNAME).so webapp-runner
$(PROJECTNAME).so: $(SRC:.cpp=.o)
- $(CXX) $(CXXFLAGS) $^ -shared $(LIBS) -o $@
+ $(CXX) $(LDFLAGS) $^ -shared $(LDLIBS) $(LIBS) -o $@
webapp-runner: webapp-runner.o fastcgiprocess.o
$(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@
diff --git a/plugins/fcgi/socket.cpp b/plugins/fcgi/socket.cpp
index c899de5..7d607f6 100644
--- a/plugins/fcgi/socket.cpp
+++ b/plugins/fcgi/socket.cpp
@@ -246,7 +246,7 @@ std::string generate_unix_domain_socket(const std::string& directory)
}
FileSocketApp::FileSocketApp(const std::string& app_addr, boost::asio::io_context& io_context):
- m_socket_file{generate_unix_domain_socket("/var/lib/webserver")},
+ m_socket_file{generate_unix_domain_socket(fs::exists("/var/lib/webserver") ? "/var/lib/webserver" : ".")},
m_fcgi_process{app_addr, m_socket_file},
m_file_socket{m_socket_file, io_context}
{