Use OpenSSL by default in the Makefile build too.
This commit is contained in:
parent
08eefffc2d
commit
5f6e9c5dc5
1 changed files with 3 additions and 6 deletions
9
Makefile
9
Makefile
|
@ -37,9 +37,6 @@ JS_EXTERNS := javascript/externs.js
|
||||||
PUBLIC_HEADERS := include/olm/olm.h include/olm/outbound_group_session.h include/olm/inbound_group_session.h include/olm/pk.h include/olm/sas.h include/olm/error.h include/olm/olm_export.h
|
PUBLIC_HEADERS := include/olm/olm.h include/olm/outbound_group_session.h include/olm/inbound_group_session.h include/olm/pk.h include/olm/sas.h include/olm/error.h include/olm/olm_export.h
|
||||||
|
|
||||||
SOURCES := $(wildcard src/*.cpp) $(wildcard src/*.c) \
|
SOURCES := $(wildcard src/*.cpp) $(wildcard src/*.c) \
|
||||||
lib/crypto-algorithms/sha256.c \
|
|
||||||
lib/crypto-algorithms/aes.c \
|
|
||||||
lib/curve25519-donna/curve25519-donna.c
|
|
||||||
|
|
||||||
FUZZER_SOURCES := $(wildcard fuzzing/fuzzers/fuzz_*.cpp) $(wildcard fuzzing/fuzzers/fuzz_*.c)
|
FUZZER_SOURCES := $(wildcard fuzzing/fuzzers/fuzz_*.cpp) $(wildcard fuzzing/fuzzers/fuzz_*.c)
|
||||||
TEST_SOURCES := $(wildcard tests/test_*.cpp) $(wildcard tests/test_*.c)
|
TEST_SOURCES := $(wildcard tests/test_*.cpp) $(wildcard tests/test_*.c)
|
||||||
|
@ -87,9 +84,9 @@ CPPFLAGS += -Iinclude -Ilib \
|
||||||
-DOLMLIB_VERSION_PATCH=$(PATCH)
|
-DOLMLIB_VERSION_PATCH=$(PATCH)
|
||||||
|
|
||||||
# we rely on <stdint.h>, which was introduced in C99
|
# we rely on <stdint.h>, which was introduced in C99
|
||||||
CFLAGS += -Wall -Werror -std=c99
|
CFLAGS += -Wall -Werror -std=c99 -DOLM_USE_OPENSSL=ON
|
||||||
CXXFLAGS += -Wall -Werror -std=c++11
|
CXXFLAGS += -Wall -Werror -std=c++11 -DOLM_USE_OPENSSL=ON
|
||||||
LDFLAGS += -Wall -Werror
|
LDFLAGS += -Wall -Werror -lcrypto
|
||||||
|
|
||||||
CFLAGS_NATIVE = -fPIC
|
CFLAGS_NATIVE = -fPIC
|
||||||
CXXFLAGS_NATIVE = -fPIC
|
CXXFLAGS_NATIVE = -fPIC
|
||||||
|
|
Loading…
Reference in a new issue