File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 14
14
#
15
15
16
16
ifeq ($(shell uname) ,Darwin)
17
- LIBS = -lc -lcrypto - lpthread
17
+ LIBS = -lc -lpthread
18
18
else
19
- LIBS = -lc -lcrypto - lpthread -lrt
19
+ LIBS = -lc -lpthread -lrt
20
20
endif
21
21
22
- OBJS = $(wildcard ../utils/* .o ../stuffer/* .o ../tls/* .o ../iana/* .o ../crypto/* .o ../error/* .o)
22
+ OBJS = $(wildcard ../utils/* .o ../stuffer/* .o ../tls/* .o ../iana/* .o ../crypto/* .o ../error/* .o ../libcrypto-root/lib/libcrypto.a )
23
23
all : libs2n.a libs2n.so libs2n.dylib
24
24
25
25
include ../s2n.mk
Original file line number Diff line number Diff line change
1
+ This directory is used to store build artifacts (tarballs and source) for a locally
2
+ built copy of libcrypto, either from OpenSSL, LibreSSL or BoringSSL.
3
+
4
+ See the s2n [ Usage Guide] ( https://github.com/awslabs/s2n/blob/master/docs/USAGE-GUIDE.md ) for more details.
Original file line number Diff line number Diff line change
1
+ This directory is used as the "prefix" target for a locally built copy
2
+ of libcrypto. See the s2n [ Usage Guide] ( https://github.com/awslabs/s2n/blob/master/docs/USAGE-GUIDE.md ) for more details.
3
+
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ INDENT = $(shell (if indent --version 2>&1 | grep GNU > /dev/null; then echo in
19
19
20
20
CFLAGS = -pedantic -Wall -Werror -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized \
21
21
-Wshadow -Wcast-qual -Wcast-align -Wwrite-strings -Wstack-protector -fPIC \
22
- -std=c99 -D_POSIX_C_SOURCE=200112L -fstack-protector-all -O2 -I../api/ -I.. / \
23
- -Wno-deprecated-declarations -Wno-unknown-pragmas -Wformat-security \
22
+ -std=c99 -D_POSIX_C_SOURCE=200112L -fstack-protector-all -O2 -I../libcrypto-root/include / \
23
+ -I../api/ -I../ - Wno-deprecated-declarations -Wno-unknown-pragmas -Wformat-security \
24
24
-D_FORTIFY_SOURCE=2
25
25
26
26
INDENTOPTS = -npro -kr -i4 -ts4 -nut -sob -l180 -ss -ncs -cp1
Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ include ../../s2n.mk
23
23
CRUFT += $(wildcard * _test)
24
24
25
25
ifeq ($(shell uname) ,Darwin)
26
- LIBS = -lcrypto - lpthread -lm
26
+ LIBS = -lpthread -lm
27
27
else
28
- LIBS = -lcrypto - lpthread -lm -lrt
28
+ LIBS = -lpthread -lm -lrt
29
29
endif
30
30
31
31
# Suppress the unreachable code warning, because tests involve what should be
32
32
# unreachable code
33
- CFLAGS += -Wno-unreachable-code -I../../ -I../../api/
33
+ CFLAGS += -Wno-unreachable-code -I../../libcrypto-root/include/ -I../../ -I../../api/
34
34
LDFLAGS += -L../../lib/ -L../testlib/ -ltests2n -ls2n ${LIBS}
35
35
36
36
run_tests : build_tests
You can’t perform that action at this time.
0 commit comments