mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-14 19:03:20 +00:00
introdused NO_SSL. Explicitely linking against SSL library.
This commit is contained in:
1 parent
cb71dc4a1e
commit
f4907bc0c2
2 files changed
+62
-140
No files matched your search
@@ -23,7 +23,8 @@ all:
|
||||
|
||||
CFLAGS= -W -Wall -std=c99 -pedantic -Os -fomit-frame-pointer $(COPT)
|
||||
MAC_SHARED= -flat_namespace -bundle -undefined suppress
|
||||
LINFLAGS= -ldl -pthread $(CFLAGS)
|
||||
SSLFLAGS= -lssl -lcrypto
|
||||
LINFLAGS= -ldl -pthread $(SSLFLAGS) $(CFLAGS)
|
||||
LIB= _$(PROG).so
|
||||
|
||||
linux:
|
||||
@@ -32,16 +33,17 @@ linux:
|
||||
|
||||
bsd:
|
||||
$(CC) $(CFLAGS) mongoose.c -shared -pthread -s -fpic -fPIC -o $(LIB)
|
||||
$(CC) $(CFLAGS) mongoose.c main.c -pthread -s -o $(PROG)
|
||||
$(CC) $(CFLAGS) mongoose.c main.c -pthread -s $(SSLFLAGS) -o $(PROG)
|
||||
|
||||
mac:
|
||||
$(CC) $(CFLAGS) $(MAC_SHARED) mongoose.c -pthread -o $(LIB)
|
||||
$(CC) $(CFLAGS) mongoose.c main.c -pthread -o $(PROG)
|
||||
$(CC) $(CFLAGS) $(MAC_SHARED) mongoose.c -pthread $(SSLFLAGS) -o $(LIB)
|
||||
$(CC) $(CFLAGS) mongoose.c main.c -pthread $(SSLFLAGS) -o $(PROG)
|
||||
|
||||
solaris:
|
||||
gcc $(CFLAGS) mongoose.c -pthread -lnsl \
|
||||
-lsocket -s -fpic -fPIC -shared -o $(LIB)
|
||||
gcc $(CFLAGS) mongoose.c main.c -pthread -lnsl -lsocket -s -o $(PROG)
|
||||
-lsocket $(SSLFLAGS) -s -fpic -fPIC -shared -o $(LIB)
|
||||
gcc $(CFLAGS) mongoose.c main.c -pthread -lnsl -lsocket $(SSLFLAGS) \
|
||||
-s -o $(PROG)
|
||||
|
||||
|
||||
##########################################################################
|
||||
|
||||
Reference in new issue
Block a user