Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
215166c5
Commit
215166c5
authored
Feb 09, 2015
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update version to 1.0.3, fix Makefile for MacOSX
parent
7a31d57b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
Makefile
Makefile
+7
-3
build.xml
build.xml
+2
-2
No files found.
Makefile
View file @
215166c5
#*******************************************************************************
# Copyright (c) 2009, 201
4
IBM Corp.
# Copyright (c) 2009, 201
5
IBM Corp.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
...
...
@@ -15,6 +15,7 @@
# Allan Stockdill-Mander - SSL updates
# Andy Piper - various fixes
# Ian Craggs - OSX build
# Rainer Poisel - support for cross-compilation
#*******************************************************************************/
# Note: on OS X you should install XCode and the associated command-line tools
...
...
@@ -110,12 +111,13 @@ CCFLAGS_SO = -g -fPIC $(CFLAGS) -Os -Wall -fvisibility=hidden
FLAGS_EXE
=
$(LDFLAGS)
-I
${
srcdir
}
-lpthread
-L
${
blddir
}
FLAGS_EXES
=
$(LDFLAGS)
-I
${
srcdir
}
-Wl
,--start-group
-lpthread
-lssl
-lcrypto
-Wl
,--end-group
-L
${
blddir
}
LDFLAGS_C
=
$(LDFLAGS)
-shared
-Wl
,-init,MQTTClient_init
-lpthread
LDFLAGS_CS
=
$(LDFLAGS)
-shared
-Wl
,--start-group
-lpthread
$(EXTRA_LIB)
-lssl
-lcrypto
-Wl
,--end-group
-Wl
,-init,MQTTClient_init
LDFLAGS_A
=
$(LDFLAGS)
-shared
-Wl
,-init,MQTTAsync_init
-lpthread
LDFLAGS_AS
=
$(LDFLAGS)
-shared
-Wl
,--start-group
-lpthread
$(EXTRA_LIB)
-lssl
-lcrypto
-Wl
,--end-group
-Wl
,-init,MQTTAsync_init
ifeq
($(OSTYPE),Linux)
LDFLAGS_CS
=
$(LDFLAGS)
-shared
-Wl
,--start-group
-lpthread
$(EXTRA_LIB)
-lssl
-lcrypto
-Wl
,--end-group
-Wl
,-init,MQTTClient_init
LDFLAGS_AS
=
$(LDFLAGS)
-shared
-Wl
,--start-group
-lpthread
$(EXTRA_LIB)
-lssl
-lcrypto
-Wl
,--end-group
-Wl
,-init,MQTTAsync_init
LDFLAGS_C
+=
-Wl
,-soname,lib
$(MQTTLIB_C)
.so.
${
MAJOR_VERSION
}
LDFLAGS_CS
+=
-Wl
,-soname,lib
$(MQTTLIB_CS)
.so.
${
MAJOR_VERSION
}
-Wl
,-no-whole-archive
LDFLAGS_A
+=
-Wl
,-soname,lib
${
MQTTLIB_A
}
.so.
${
MAJOR_VERSION
}
...
...
@@ -125,6 +127,8 @@ EXTRA_LIB =
else
ifeq
($(OSTYPE),Darwin)
LDFLAGS_CS
=
$(LDFLAGS)
-shared
-Wl
,--start-group
-lpthread
$(EXTRA_LIB)
-lssl
-lcrypto
-Wl
,--end-group
-Wl
,-init,_MQTTClient_init
LDFLAGS_AS
=
$(LDFLAGS)
-shared
-Wl
,--start-group
-lpthread
$(EXTRA_LIB)
-lssl
-lcrypto
-Wl
,--end-group
-Wl
,-init,_MQTTAsync_init
CCFLAGS_SO
+=
-Wno-deprecated-declarations
-DUSE_NAMED_SEMAPHORES
LDFLAGS_C
+=
-Wl
,-install_name,lib
$(MQTTLIB_C)
.so.
${
MAJOR_VERSION
}
LDFLAGS_CS
+=
-Wl
,-install_name,lib
$(MQTTLIB_CS)
.so.
${
MAJOR_VERSION
}
...
...
build.xml
View file @
215166c5
<!--*******************************************************************************
Copyright (c) 2012, 201
4
IBM Corp.
Copyright (c) 2012, 201
5
IBM Corp.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
...
...
@@ -24,7 +24,7 @@
</taskdef>
<property
name=
"output.folder"
value=
"build/output"
/>
<property
name=
"release.version"
value=
"1.0.
2
"
/>
<property
name=
"release.version"
value=
"1.0.
3
"
/>
<property
name=
"libname"
value=
"mqttv3c"
/>
<property
name=
"libname.ssl"
value=
"mqttv3cs"
/>
...
...
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