VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2019-12-20Fix the compilation against WxWidgets when NOGUI=1 (#570)Gokturk Yuksek1-1/+2
* Revert "Linux: Fix failure to run VeraCrypt binary built for console mode on headless machines (fix issue https://github.com/veracrypt/VeraCrypt/issues/531)" The build failure still exists for system wxGTK compiled with '--disable-gui': ``` In file included from TextUserInterface.cpp:27: TextUserInterface.h: In member function ‘virtual bool VeraCrypt::TextUserInterface::Initialize(int&, wxChar**)’: TextUserInterface.h:50:63: error: ‘wxAppBase’ has not been declared 50 | virtual bool Initialize (int &argc, wxChar **argv) { return wxAppBase::Initialize(argc, argv); } ``` This reverts commit 737e1f126b8826ed02418266e590e195aebdd7c0. * Revert "Linux: fix compilation error when building console-only version of VeraCrypt that is statically linked to wxWidgets" The build failure still exists for system wxGTK compiled with '--disable-gui': ``` In file included from TextUserInterface.cpp:27: TextUserInterface.h: In member function ‘virtual bool VeraCrypt::TextUserInterface::Initialize(int&, wxChar**)’: TextUserInterface.h:50:63: error: ‘wxAppBase’ has not been declared 50 | virtual bool Initialize (int &argc, wxChar **argv) { return wxAppBase::Initialize(argc, argv); } ``` This reverts commit 14bee5e6a227701e78c5fec04064c0494f6361f0. * src/Main/Main.make: simplify the WX_CONFIG_LIBS logic Irrespective of whether we are linking against widgets statically or dynamically, pull in only 'base' when GUI is disabled, and 'adv,core,base' when GUI is enabled. When GUI is disabled, the C/CXX flag must include '-DwxUSE_GUI=0' for this to work. * src/Makefile: pass '-DwxUSE_GUI=0' when NOGUI=1 veracrypt with NOGUI=1 fails to properly link against wxGTK compiled with '--disable-gui' only using the 'base' library because the wx's setup.h implicitly defines wxUSE_GUI=1, which then changes the definition of various structures, requiring symbols from the core library as well. For example, wxwidgets include/wx/app.h defines: #if wxUSE_GUI class WXDLLIMPEXP_CORE wxAppBase : public wxAppConsole ... [snip] ... #else // !GUI // wxApp is defined in core and we cannot define another one in wxBase, // so use the preprocessor to allow using wxApp in console programs too #define wxApp wxAppConsole #endif // GUI/!GUI To fix this, pass '-DwxUSE_GUI=0' when compiling veracrypt with NOGUI=1. Closes: https://github.com/veracrypt/VeraCrypt/issues/531
2019-12-11Linux: fix compilation error when building console-only version of VeraCrypt ↵Mounir IDRASSI1-1/+0
that is statically linked to wxWidgets
2019-12-09Linux: fix NOASM compilation (#563) (#568)alt3r 3go1-0/+1
Signed-off-by: alt3r 3go <alt3r.3go@protonmail.com>
2019-10-15MacOSX: Enhanced Makefile and build script (#519)El Mostafa Idrassi1-6/+7
Added new variable 'VC_OSX_SDK' to differentiate between the OSX minimum target and the SDK to use for building.
2019-10-14MacOSX: Add build scripts and modifications to linking against wxWidgets ↵Mounir IDRASSI1-9/+33
3.1.2 for non legacy build targeting OSX 10.9+
2019-10-05Linux: Add option in Makefile to use GTK3 in VeraCrypt static buildMounir IDRASSI1-1/+7
2019-10-02Allow $(ARCH) to be defined during build (#471)Unit 1931-1/+1
This can be useful when crossbuilding or building in a chroot where using uname -m would cause the wrong compiler options.
2018-09-01Linux/FreeBSD: Add 32-bit build configuration targetting legacy CPUs that ↵Mounir IDRASSI1-0/+19
don't support SSE2 instructions.
2017-11-06Fix compilation on Linux (closes #198)bmintz1-2/+2
This patch was provided by Krytarik Raido via unit93 https://github.com/veracrypt/VeraCrypt/issues/198#issuecomment-341453420
2017-07-16RPI, armv7 targetkavsrf1-0/+3
2017-07-10Add support for building under FreeBSD 11Mounir IDRASSI1-0/+12
2017-06-27MacOSX: various changes for assembly files build. Don't use 32-bit assembly ↵Mounir IDRASSI1-3/+3
code of SHA-512 since it is not compatible with PIE configuration of OSX compiler (absolute addressing used)
2017-06-23Update IDRIX copyright yearMounir IDRASSI1-1/+1
2017-06-23Linux/MacOSX: use yasm instead of nasm for compiling all assembly files.Mounir IDRASSI1-8/+7
2017-06-13Linux/MacOSX: Modify Makefile to separate between build and packaging. Add ↵Mounir IDRASSI1-0/+5
install target for local installation.
2017-06-13Linux: built VeraCrypt binary with support for Address Space Layout ↵Mounir IDRASSI1-4/+4
Randomization (ASLR).
2017-04-23FreeBSD 11 build and use compatibilityMounir IDRASSI1-0/+18
2016-12-26MacOSX: use Yasm to build Twofish 64-bit assembly code on OSX since native ↵Mounir IDRASSI1-0/+2
compiler doesn't support GAS syntax
2016-11-05Linux: Always use "uname -m" to determine processor type. This fixes ↵Mounir IDRASSI1-4/+1
Slackware build issue.
2016-10-17Linux/MacOSX: cleaner support for SSE compiler switchesMounir IDRASSI1-2/+20
2016-08-19Linux: don't use SSE/AES switched of gcc if the architecture is not x86 or ↵Mounir IDRASSI1-15/+17
x64 (for example ARM).
2016-08-17Linux: Add parameter to Makefile for enabling SSSE3 and SSE4.1 support in ↵Mounir IDRASSI1-0/+16
compiler
2016-08-08Linux: Enable gcc AES-NI built-in functions and adapt Hyper-V AES detection ↵Mounir IDRASSI1-0/+6
code to gcc.
2016-05-13Revert "Makefile: fix build under gcc6"Mounir IDRASSI1-1/+1
2016-05-13Makefile: fix build under gcc6Tomasz Przybył1-1/+1
Veracrypt for build under GCC6 required using compatibility flag `-std=c++98` against change default C++ frontend in GCC6. The C++ frontend now defaults to C++14 standard instead of C++98 it has been defaulting to previously, for compiling older C++ code that might require either explicitly compiling with selected older C++ standards, or might require some code adjustment, see http://gcc.gnu.org/gcc-6/porting_to.html for details. The experimental C++17 support has been enhanced in this release. from: https://gcc.gnu.org/ml/gcc-announce/2016/msg00000.html
2016-03-31Remove some trailing whitespaceDavid Foerster1-7/+7
2016-03-17Linux: fix mount failure with "Invalid characters encountered" error when ↵Mounir IDRASSI1-0/+6
building using gcc-5 by disabling the new C++ ABI. For this to work, wxWidgets static library must be built and used by VeraCrypt by specifying WXSTATIC=1 in make command line.
2016-01-20Copyright: update dates to include 2016.Mounir IDRASSI1-1/+1
2015-08-06Update license information to reflect the use of a dual license Apache 2.0 ↵Mounir IDRASSI1-4/+8
and TrueCrypt 3.0.
2015-07-11Linux: Solve error when building against dynamic wxWidgets library, ↵Mounir IDRASSI1-0/+1
especially under Ubuntu.
2015-01-02Linux: solve link error on recent Ubuntu when using shared wxWidgets.Mounir IDRASSI1-1/+4
2014-11-08MacOSX : Correct issue of compiling assembly files in both 32-bit and 64-bit ↵Mounir IDRASSI1-15/+24
mode. Modify Makefiles to correct compilation process using latest Xcode.
2014-11-08Add VeraCrypt specific Linux packaging code in Makefiles and add various ↵Mounir IDRASSI1-0/+3
helper scripts. The original TrueCrypt sources didn't contain anything about this.
2014-11-08Update wxWidgets compilation flags in order to be compatible with wxWidgets ↵Mounir IDRASSI1-2/+4
3.0 and remove unneeded dependencies to ensure maximum compatibility.
2014-11-08Correct typos introduced inadvertentlyMounir IDRASSI1-1/+1
2014-11-08Adapt Makefiles for VeraCrypt. Use PKCS#11 headers from source tree is not ↵Mounir IDRASSI1-1/+3
specified elsewhere.
2014-11-08Replace TrueCrypt references in added sources and resources by VeraCrypt ones.Mounir IDRASSI1-1/+1
2014-11-08Add TrueCrypt 7.1a MacOSX/Linux specific source files.Mounir IDRASSI1-0/+298