Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
df370983
Commit
df370983
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Ok, I take back what I said about xemaphores...
parent
cdf0bb36
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/build/Common.gmake
+8
-6
8 additions, 6 deletions
src/build/Common.gmake
with
8 additions
and
6 deletions
src/build/Common.gmake
+
8
−
6
View file @
df370983
...
@@ -228,35 +228,37 @@ ifeq ($(os),linux) # Linux
...
@@ -228,35 +228,37 @@ ifeq ($(os),linux) # Linux
endif
endif
MT_CFLAGS += -D_THREAD_SAFE -D_REENTRANT
MT_CFLAGS += -D_THREAD_SAFE -D_REENTRANT
ifeq ($(os),freebsd) # FreeBSD
ifeq ($(os),freebsd) # FreeBSD
CFLAGS += -DUSE_XP_SEMAPHORES
MT_
CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS += -pthread
MT_LDFLAGS += -pthread
XP_SEM := 1
XP_SEM := 1
else
else
ifeq ($(os),openbsd) # OpenBSD
ifeq ($(os),openbsd) # OpenBSD
CFLAGS += -DUSE_XP_SEMAPHORES
MT_
CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS += -pthread
MT_LDFLAGS += -pthread
XP_SEM := 1
XP_SEM := 1
else
else
ifeq ($(os),netbsd) # NetBSD
ifeq ($(os),netbsd) # NetBSD
CFLAGS += -D__unix__ -DUSE_XP_SEMAPHORES
CFLAGS += -D__unix__
MT_CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS += -L/usr/pkg/lib -L/usr/pkg/pthreads/lib -lpthread
MT_LDFLAGS += -L/usr/pkg/lib -L/usr/pkg/pthreads/lib -lpthread
XP_SEM := 1
XP_SEM := 1
else
else
ifeq ($(os),qnx) # QNX
ifeq ($(os),qnx) # QNX
else
else
ifeq ($(os),darwin) # Darwin/Mac OS X
ifeq ($(os),darwin) # Darwin/Mac OS X
CFLAGS += -D__unix__ -DUSE_XP_SEMAPHORES -D__DARWIN__
CFLAGS += -D__unix__
MT_CFLAGS += -DUSE_XP_SEMAPHORES -D__DARWIN__
MT_LDFLAGS += -lpthread
MT_LDFLAGS += -lpthread
XP_SEM := 1
XP_SEM := 1
else
else
ifeq ($(os),sunos) # Solaris
ifeq ($(os),sunos) # Solaris
XP_SEM := 1
XP_SEM := 1
MT_CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
MT_CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
CFLAGS += -DUSE_XP_SEMAPHORES
MT_
CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS += -lpthread
MT_LDFLAGS += -lpthread
else # Linux / Other UNIX
else # Linux / Other UNIX
XP_SEM := 1
XP_SEM := 1
CFLAGS += -DUSE_XP_SEMAPHORES
MT_
CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS += -lpthread
MT_LDFLAGS += -lpthread
endif
endif
endif
endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment