diff options
author | kokokodak <82901997+kokokodak@users.noreply.github.com> | 2021-07-14 14:43:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 13:43:34 +0200 |
commit | c8830a04b4adc3048b76c658fa1084e749f188da (patch) | |
tree | eebca034aa351f33461d8980e478eb7cbe27c825 /src/Makefile | |
parent | 0ff7f4548a433b10fa9eb5c61bbe589eb6b9eed1 (diff) | |
download | VeraCrypt-c8830a04b4adc3048b76c658fa1084e749f188da.tar.gz VeraCrypt-c8830a04b4adc3048b76c658fa1084e749f188da.zip |
Add support for OpenBSD (#779)
* OpenBSD: add basic support
modified: Build/Include/Makefile.inc
modified: Driver/Fuse/FuseService.cpp
modified: Main/FatalErrorHandler.cpp
modified: Makefile
modified: Platform/Unix/File.cpp
modified: Platform/Unix/FilesystemPath.cpp
modified: Platform/Unix/SystemInfo.cpp
* OpenBSD: some necessary files were missing
new file: Core/Unix/OpenBSD/CoreOpenBSD.cpp
new file: Core/Unix/OpenBSD/CoreOpenBSD.h
new file: Core/Unix/OpenBSD/System.h
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index 86871c8b..c49471f7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -363,6 +363,27 @@ ifeq "$(shell uname -s)" "FreeBSD" endif +#------ OpenBSD configuration ------ + +ifeq "$(shell uname -s)" "OpenBSD" + + PLATFORM := OpenBSD + PLATFORM_UNSUPPORTED := 1 + C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_OPENBSD + + CC := cc + CXX := c++ + + ifeq "$(TC_BUILD_CONFIG)" "Release" + C_CXX_FLAGS += -fdata-sections -ffunction-sections -fpie + LFLAGS += -Wl,--gc-sections -pie + + WXCONFIG_CFLAGS += -fpie -fPIC + WXCONFIG_CXXFLAGS += -fpie -fPIC + endif +endif + + #------ Solaris configuration ------ ifeq "$(shell uname -s)" "SunOS" |