mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
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
This commit is contained in:
21
src/Makefile
21
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"
|
||||
|
||||
Reference in New Issue
Block a user