diff --git a/Makefile.incl b/Makefile.incl index f7599ac13a..0b593708ac 100644 --- a/Makefile.incl +++ b/Makefile.incl @@ -65,4 +65,5 @@ SERVERLIBS_MIN = $(LIBSCHED) $(LIBBOINC_CRYPT) $(LIBBOINC) $(PTHREAD_LIBS) $(RSA SERVERLIBS_FCGI = $(LIBSCHED_FCGI) $(LIBBOINC_CRYPT) $(LIBBOINC_FCGI) -lfcgi $(MYSQL_LIBS) $(PTHREAD_LIBS) $(RSA_LIBS) $(SSL_LIBS) APPLIBS = $(LIBAPI) $(LIBBOINC) FUHLIBS = $(LIBBOINC_CRYPT) $(LIBBOINC) $(RSA_LIBS) $(SSL_LIBS) +FUHLIBS_FCGI = $(LIBBOINC_CRYPT) $(LIBBOINC_FCGI) -lfcgi $(RSA_LIBS) $(SSL_LIBS) diff --git a/sched/Makefile.am b/sched/Makefile.am index 7fc0b9fd3a..f7e706d417 100644 --- a/sched/Makefile.am +++ b/sched/Makefile.am @@ -315,11 +315,9 @@ fcgi_SOURCES = $(cgi_sources) fcgi_CPPFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS) fcgi_LDADD = $(SERVERLIBS_FCGI) -fcgi_file_upload_handler_SOURCES = \ - file_upload_handler.cpp \ - sched_config.cpp +fcgi_file_upload_handler_SOURCES = file_upload_handler.cpp sched_config.cpp sched_util_basic.cpp sched_limit.cpp fcgi_file_upload_handler_CPPFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS) -fcgi_file_upload_handler_LDADD = $(SERVERLIBS_FCGI) +fcgi_file_upload_handler_LDADD = $(FUHLIBS_FCGI) endif # end of "if ENABLE_FCGI"