Commit 290302a1 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent e6f9466b
...@@ -262,7 +262,7 @@ int CHtmlFile::Convert(const std::vector<std::wstring>& arFiles, const std::wstr ...@@ -262,7 +262,7 @@ int CHtmlFile::Convert(const std::vector<std::wstring>& arFiles, const std::wstr
if (std::string::npos != sProgramm.find_last_of('/')) if (std::string::npos != sProgramm.find_last_of('/'))
sLibraryDir = "LD_LIBRARY_PATH=" + sProgramm.substr(0, sProgramm.find_last_of('/')); sLibraryDir = "LD_LIBRARY_PATH=" + sProgramm.substr(0, sProgramm.find_last_of('/'));
#if 0 #ifdef asc_static_link_libstd
const char* nargs[2]; const char* nargs[2];
nargs[0] = sXmlA.c_str(); nargs[0] = sXmlA.c_str();
nargs[1] = NULL; nargs[1] = NULL;
...@@ -277,7 +277,6 @@ int CHtmlFile::Convert(const std::vector<std::wstring>& arFiles, const std::wstr ...@@ -277,7 +277,6 @@ int CHtmlFile::Convert(const std::vector<std::wstring>& arFiles, const std::wstr
(char * const *)nenv); (char * const *)nenv);
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
#else #else
const char* nargs[6]; const char* nargs[6];
nargs[0] = "-a"; nargs[0] = "-a";
nargs[1] = "--auto-servernum"; nargs[1] = "--auto-servernum";
...@@ -294,6 +293,7 @@ int CHtmlFile::Convert(const std::vector<std::wstring>& arFiles, const std::wstr ...@@ -294,6 +293,7 @@ int CHtmlFile::Convert(const std::vector<std::wstring>& arFiles, const std::wstr
execve("/usr/bin/xvfb-run", (char * const *)nargs, (char * const *)nenv); execve("/usr/bin/xvfb-run", (char * const *)nargs, (char * const *)nenv);
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
#endif #endif
break; break;
} }
default: // parent process, pid now contains the child pid default: // parent process, pid now contains the child pid
......
...@@ -50,6 +50,7 @@ LIBS += -L$$DESTDIR -lUnicodeConverter ...@@ -50,6 +50,7 @@ LIBS += -L$$DESTDIR -lUnicodeConverter
#CONFIG += static_link_libstd #CONFIG += static_link_libstd
static_link_libstd { static_link_libstd {
DEFINES += asc_static_link_libstd
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
DESTDIR_POSTFIX = _static_stdlib DESTDIR_POSTFIX = _static_stdlib
DESTDIR = $$DESTDIR$$DESTDIR_POSTFIX DESTDIR = $$DESTDIR$$DESTDIR_POSTFIX
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment