Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
f935ef83
Commit
f935ef83
authored
Sep 22, 2012
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_mongoose.dll -> mongoose.dll, _mongoose.so -> libbmongoose.so
parent
79cdb77e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Makefile
Makefile
+3
-3
mongoose.py
bindings/python/mongoose.py
+2
-2
No files found.
Makefile
View file @
f935ef83
...
...
@@ -27,14 +27,14 @@ GCC_WARNS = -W -Wall -pedantic
CFLAGS
=
-std
=
c99
-O2
$(GCC_WARNS)
$(COPT)
MAC_SHARED
=
-flat_namespace
-bundle
-undefined
suppress
LINFLAGS
=
-ldl
-pthread
$(CFLAGS)
LIB
=
_
$(PROG)
.so
LIB
=
lib
$(PROG)
.so
$(MONGOOSE_LIB_SUFFIX)
# Make sure that the compiler flags come last in the compilation string.
# If not so, this can break some on some Linux distros which use
# "-Wl,--as-needed" turned on by default in cc command.
# Also, this is turned in many other distros in static linkage builds.
linux
:
$(CC)
mongoose.c
-shared
-fPIC
-fpic
-o
$(LIB)
$(LINFLAGS)
$(CC)
mongoose.c
-shared
-fPIC
-fpic
-o
$(LIB)
-Wl
,-soname,
$(LIB)
$(LINFLAGS)
$(CC)
mongoose.c main.c
-o
$(PROG)
$(LINFLAGS)
bsd
:
...
...
@@ -121,7 +121,7 @@ MINGWOPT= -W -Wall -mthreads -Wl,--subsystem,console $(MINGWDBG) -DHAVE_STDINT
mingw
:
windres win32
\r
es.rc win32
\r
es.o
$(CC)
$(MINGWOPT)
mongoose.c
-lws2_32
\
-shared
-Wl
,--out-implib
=
$(PROG)
.lib
-o
_
$(PROG)
.dll
-shared
-Wl
,--out-implib
=
$(PROG)
.lib
-o
$(PROG)
.dll
$(CC)
$(MINGWOPT)
-Iwin32
mongoose.c main.c win32
\r
es.o
-lws2_32
-ladvapi32
\
-o
$(PROG)
.exe
...
...
bindings/python/mongoose.py
View file @
f935ef83
...
...
@@ -123,9 +123,9 @@ class Mongoose(object):
def
__init__
(
self
,
callback
,
**
kwargs
):
if
os
.
name
==
'nt'
:
self
.
dll
=
ctypes
.
WinDLL
(
'
_
mongoose.dll'
)
self
.
dll
=
ctypes
.
WinDLL
(
'mongoose.dll'
)
else
:
self
.
dll
=
ctypes
.
CDLL
(
'
_
mongoose.so'
)
self
.
dll
=
ctypes
.
CDLL
(
'
lib
mongoose.so'
)
self
.
dll
.
mg_start
.
restype
=
ctypes
.
c_void_p
self
.
dll
.
mg_modify_passwords_file
.
restype
=
ctypes
.
c_int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment