Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
2768df84
Commit
2768df84
authored
Sep 28, 2016
by
Constantin Rack
Committed by
GitHub
Sep 28, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2135 from bluca/unbreak-pkg-config
Problem: pkg-config Requires.private is broken
parents
34a1292e
06d810b4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
15 deletions
+6
-15
CMakeLists.txt
CMakeLists.txt
+1
-2
configure.ac
configure.ac
+5
-11
libzmq.pc.cmake.in
src/libzmq.pc.cmake.in
+0
-1
libzmq.pc.in
src/libzmq.pc.in
+0
-1
No files found.
CMakeLists.txt
View file @
2768df84
...
...
@@ -17,7 +17,6 @@ if(COMPILER_SUPPORTS_C11)
endif
()
# Will be used to add flags to pkg-config useful when apps want to statically link
set
(
pkg_config_requires_private
""
)
set
(
pkg_config_libs_private
""
)
option
(
WITH_OPENPGM
"Build with support for OpenPGM"
OFF
)
...
...
@@ -49,7 +48,7 @@ elseif (WITH_LIBSODIUM)
endif
()
set
(
ZMQ_USE_LIBSODIUM 1
)
set
(
ZMQ_HAVE_CURVE 1
)
list
(
APPEND pkg_config_requires_private
"lib
sodium"
)
set
(
pkg_config_libs_private
"
${
pkg_config_libs_private
}
-l
sodium"
)
else
()
message
(
FATAL_ERROR
"libsodium is not installed. Install it, then run CMake again"
)
...
...
configure.ac
View file @
2768df84
...
...
@@ -141,7 +141,6 @@ libzmq_on_gnu="no"
CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE -Wno-long-long $CPPFLAGS"
# Will be used to add flags to pkg-config useful when apps want to statically link
PKGCFG_REQUIRES_PRIVATE=""
PKGCFG_LIBS_PRIVATE=""
# For host type checks
...
...
@@ -455,7 +454,7 @@ elif test "x$with_libsodium" = "xyes"; then
;;
esac
PKGCFG_
REQUIRES_PRIVATE="$PKGCFG_REQUIRES_PRIVATE libsodium
"
PKGCFG_
LIBS_PRIVATE="$PKGCFG_LIBS_PRIVATE $sodium_LIBS
"
else
AC_MSG_NOTICE([Using tweetnacl for CURVE security])
AC_DEFINE(ZMQ_HAVE_CURVE, [1], [Using curve encryption])
...
...
@@ -477,18 +476,14 @@ AC_ARG_WITH([pgm], [AS_HELP_STRING([--with-pgm],
# conditionally require pgm package
if test "x$with_pgm_ext" != "xno"; then
PKG_CHECK_MODULES([pgm], [openpgm-5.2 >= 5.2], [
have_pgm_library="yes"
PKGCFG_REQUIRES_PRIVATE="$PKGCFG_REQUIRES_PRIVATE openpgm-5.2" ],
PKG_CHECK_MODULES([pgm], [openpgm-5.2 >= 5.2], [ have_pgm_library="yes" ],
[PKG_CHECK_MODULES([pgm], [openpgm-5.1 >= 5.1],
[
have_pgm_library="yes"
PKGCFG_REQUIRES_PRIVATE="$PKGCFG_REQUIRES_PRIVATE openpgm-5.1"
])])
[ have_pgm_library="yes" ])])
fi
if test "x$have_pgm_library" = "xyes"; then
AC_DEFINE(ZMQ_HAVE_OPENPGM, [1], [Have OpenPGM extension])
PKGCFG_LIBS_PRIVATE="$PKGCFG_LIBS_PRIVATE $pgm_LIBS"
fi
AM_CONDITIONAL(HAVE_PGM, test "x$have_pgm_library" = "xyes")
...
...
@@ -515,7 +510,7 @@ if test "x$with_norm_ext" != "xno"; then
LIBZMQ_EXTRA_LDFLAGS="-L${norm_path}/lib ${LIBZMQ_EXTRA_LDFLAGS}"
fi
LIBS="-L${norm_path}/lib -lnorm $LIBS"
PKGCFG_LIBS_PRIVATE="$PKGCFG_LIBS_PRIVATE
libnorm.a
"
PKGCFG_LIBS_PRIVATE="$PKGCFG_LIBS_PRIVATE
-lnorm
"
else
AC_MSG_RESULT([no])
fi
...
...
@@ -661,7 +656,6 @@ AC_SUBST(LIBZMQ_EXTRA_LDFLAGS)
AC_SUBST(LIBZMQ_VMCI_CXXFLAGS)
AC_SUBST(LIBZMQ_VMCI_LDFLAGS)
AC_SUBST(pkg_config_requires_private, $PKGCFG_REQUIRES_PRIVATE)
AC_SUBST(pkg_config_libs_private, $PKGCFG_LIBS_PRIVATE)
# set pkgconfigdir, allow override
...
...
src/libzmq.pc.cmake.in
View file @
2768df84
...
...
@@ -8,5 +8,4 @@ Description: 0MQ c++ library
Version: @ZMQ_VERSION_MAJOR@.@ZMQ_VERSION_MINOR@.@ZMQ_VERSION_PATCH@
Libs: -L${libdir} -lzmq
Libs.private: -lstdc++ @pkg_config_libs_private@
Requires.private: @pkg_config_requires_private@
Cflags: -I${includedir} @pkg_config_defines@
src/libzmq.pc.in
View file @
2768df84
...
...
@@ -8,5 +8,4 @@ Description: 0MQ c++ library
Version: @VERSION@
Libs: -L${libdir} -lzmq
Libs.private: -lstdc++ @pkg_config_libs_private@
Requires.private: @pkg_config_requires_private@
Cflags: -I${includedir} @pkg_config_defines@
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