More changes to build a static agent on w32 and w64.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10232 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e4750ce9ea
commit
9891dc4aa6
|
@ -6,7 +6,6 @@ else
|
|||
PandoraAgent_SOURCES = misc/pandora_file.cc modules/pandora_data.cc modules/pandora_module_factory.cc modules/pandora_module.cc modules/pandora_module_list.cc modules/pandora_module_plugin.cc modules/pandora_module_inventory.cc modules/pandora_module_freememory.cc modules/pandora_module_exec.cc modules/pandora_module_perfcounter.cc modules/pandora_module_proc.cc modules/pandora_module_tcpcheck.cc modules/pandora_module_freememory_percent.cc modules/pandora_module_freedisk.cc modules/pandora_module_freedisk_percent.cc modules/pandora_module_logevent.cc modules/pandora_module_service.cc modules/pandora_module_cpuusage.cc modules/pandora_module_wmiquery.cc modules/pandora_module_regexp.cc modules/pandora_module_ping.cc modules/pandora_module_snmpget.cc udp_server/udp_server.cc main.cc pandora_strutils.cc pandora.cc windows_service.cc pandora_agent_conf.cc windows/pandora_windows_info.cc windows/pandora_wmi.cc pandora_windows_service.cc misc/md5.c windows/wmi/disphelper.c ssh/libssh2/channel.c ssh/libssh2/mac.c ssh/libssh2/session.c ssh/libssh2/comp.c ssh/libssh2/misc.c ssh/libssh2/sftp.c ssh/libssh2/crypt.c ssh/libssh2/packet.c ssh/libssh2/userauth.c ssh/libssh2/hostkey.c ssh/libssh2/publickey.c ssh/libssh2/kex.c ssh/libssh2/scp.c ssh/pandora_ssh_client.cc ssh/pandora_ssh_test.cc ftp/pandora_ftp_client.cc ftp/pandora_ftp_test.cc
|
||||
PandoraAgent_CXXFLAGS=-O2
|
||||
endif
|
||||
PandoraAgent_LDFLAGS=-static-libgcc -static-libstdc++
|
||||
|
||||
LDADD = versioninfo.res
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -14,7 +14,8 @@ AC_PROG_CXX
|
|||
AC_PROG_CC
|
||||
|
||||
# Get rid of the -g flag
|
||||
CXXFLAGS=
|
||||
CXXFLAGS=-DCURL_STATICLIB
|
||||
LDFLAGS="-static -static-libgcc -static-libstdc++"
|
||||
|
||||
# Debugging
|
||||
AC_ARG_ENABLE([debug], [ --enable-debug produce debugging information (disabled by default)], debug="yes", debug="no")
|
||||
|
@ -33,12 +34,12 @@ AC_CHECK_LIB([psapi], [main], , AC_MSG_ERROR([libpsapi not found.]))
|
|||
AC_CHECK_LIB([ole32], [main], , AC_MSG_ERROR([libole32 not found.]))
|
||||
AC_CHECK_LIB([oleaut32], [main], , AC_MSG_ERROR([liboleaut not found.]))
|
||||
AC_CHECK_LIB([uuid], [main], , AC_MSG_ERROR([libuuid not found.]))
|
||||
AC_CHECK_LIB([boost_regex], [main], , AC_MSG_ERROR([Boost.Regex not not found. Get it from http://www.boost.org/]))
|
||||
AC_CHECK_LIB([z], [main], , AC_MSG_ERROR([libz not found.]))
|
||||
AC_CHECK_LIB([boost_regex-mt-s], [main], , AC_MSG_ERROR([Boost.Regex not not found. Get it from http://www.boost.org/]))
|
||||
AC_CHECK_LIB([gdi32], [main], , AC_MSG_ERROR([libgdi32 not found.]))
|
||||
AC_CHECK_LIB([crypto], [main], , AC_MSG_ERROR([libcrypto not found.]))
|
||||
AC_CHECK_LIB([ssl], [main], , AC_MSG_ERROR([libssl not found.]))
|
||||
AC_CHECK_LIB([curl], [main], , AC_MSG_ERROR([libcurl not found.]))
|
||||
AC_CHECK_LIB([z], [main], , AC_MSG_ERROR([libz not found.]))
|
||||
|
||||
# Checks for header files.
|
||||
AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h sys/socket.h sys/time.h unistd.h wchar.h])
|
||||
|
|
|
@ -2390,7 +2390,7 @@ Windows,BuildSeparateArchives
|
|||
{No}
|
||||
|
||||
Windows,Executable
|
||||
{<%AppName%>-<%Version%>-Setup<%Ext%>}
|
||||
{<%AppName%>-Setup<%Ext%>}
|
||||
|
||||
Windows,FileDescription
|
||||
{<%AppName%> <%Version%> Setup}
|
||||
|
|
Loading…
Reference in New Issue