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
aef344f0
Commit
aef344f0
authored
Dec 01, 2010
by
valenok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix linux linkage (move compiler flags to the end of compilation string)
parent
ac093604
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
Makefile
Makefile
+13
-9
No files found.
Makefile
View file @
aef344f0
...
...
@@ -27,22 +27,26 @@ MAC_SHARED= -flat_namespace -bundle -undefined suppress
LINFLAGS
=
-ldl
-pthread
$(CFLAGS)
LIB
=
_
$(PROG)
.so
# 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)
$(LINFLAGS)
mongoose.c
-shared
-fPIC
-fpic
-o
$(LIB
)
$(CC)
$(LINFLAGS)
mongoose.c main.c
-o
$(PROG
)
$(CC)
mongoose.c
-shared
-fPIC
-fpic
-o
$(LIB)
$(LINFLAGS
)
$(CC)
mongoose.c main.c
-o
$(PROG)
$(LINFLAGS
)
bsd
:
$(CC)
$(CFLAGS)
mongoose.c
-shared
-pthread
-fpic
-fPIC
-o
$(LIB
)
$(CC)
$(CFLAGS)
mongoose.c main.c
-pthread
-o
$(PROG
)
$(CC)
mongoose.c
-shared
-pthread
-fpic
-fPIC
-o
$(LIB)
$(CFLAGS
)
$(CC)
mongoose.c main.c
-pthread
-o
$(PROG)
$(CFLAGS
)
mac
:
$(CC)
$(CFLAGS)
$(MAC_SHARED)
mongoose.c
-pthread
-o
$(LIB
)
$(CC)
$(CFLAGS)
mongoose.c main.c
-pthread
-o
$(PROG
)
$(CC)
mongoose.c
-pthread
-o
$(LIB)
$(MAC_SHARED)
$(CFLAGS
)
$(CC)
mongoose.c main.c
-pthread
-o
$(PROG)
$(CFLAGS
)
solaris
:
gcc
$(CFLAGS)
mongoose.c
-pthread
-lnsl
\
-lsocket
-fpic
-fPIC
-shared
-o
$(LIB)
gcc
$(CFLAGS)
mongoose.c main.c
-pthread
-lnsl
-lsocket
-o
$(PROG
)
gcc mongoose.c
-pthread
-lnsl
\
-lsocket
-fpic
-fPIC
-shared
-o
$(LIB)
$(CFLAGS)
gcc
mongoose.c main.c
-pthread
-lnsl
-lsocket
-o
$(PROG)
$(CFLAGS
)
##########################################################################
...
...
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