Граф коммитов

33 Коммитов

Автор SHA1 Сообщение Дата
Eric Seidel bc3663f56c
Improve pkg-config support (@gridaphobe, #2659)
* Improve pkg-config support

1. Add required libraries (zlib, lz4, zstd, openssl, sasl2) to the
   pkg-config `Requires` field instead of to `Libs` if they were
   discovered via pkg-config. This allows pkg-config (and other tools
   built on top of the pkg-config metadata) to see librdkafka's full
   dependency graph.

2. Prefix full paths to librdkafka.a with the pkg-config variable
   ${pc_sysrootdir}. pkg-config automatically applies this prefix to
   paths passed to -I and -L, but nowhere else. This means that the
   previous link line in the -static.pc files is inconsistent, and
   would expand to

     -L${pc_sysrootdir}${libdir} ${libdir}/librdkafka.a

3. #include <stddef.h> when checking for sasl so that detection via
   pkg-config works. This is needed as sasl.h references some types
   that are defined in stddef.h.

* fix sasl includes check

* enable-static: only export pkgconfig deps when no .a is found
2020-09-15 00:47:36 +02:00
Magnus Edenhill e68ef8dc37 Use CXX instead of CC to link C++ libs/programs so that -lstdc++ is not needed (#2878) 2020-05-13 10:25:47 +02:00
Magnus Edenhill 2e53c0f439 make: don't depend on linker script if not enabled
This prevents the shared libs to be re-generated on each 'make',
including 'make install', even if there were no changes, which in the case
of 'sudo make install' would create shared libs as the root user.
2020-05-11 09:24:26 +02:00
Magnus Edenhill 86461c0297 Generate static library that includes available static dependencies
* Keep track of what dependencies are only available dynamically
* Rename xxhash file to avoid object collission with OpenSSL
2020-03-27 13:18:52 +01:00
David Trihy 72756d731f Header support for C++ API 2018-11-26 16:18:08 +01:00
Magnus Edenhill dab1d778b1 Added `make uninstall` 2018-06-19 12:13:37 +02:00
Magnus Edenhill 828e5788f8 Fix build when python is not available #1358 2018-03-05 11:50:35 +01:00
Magnus Edenhill d845834370 librdkafka++: just link C library, not also its dependencies 2017-01-13 13:43:43 +01:00
Magnus Edenhill 5a65937c8c perl to python 2016-01-13 13:24:37 +01:00
Magnus Edenhill 89ec7e4c87 Always link C++ lib with C lib to promote elf NEEDED flag 2015-12-26 17:51:15 +01:00
Magnus Edenhill aa289ddcc9 Merge branch 'master' into oct15
Conflicts:
	src-cpp/Makefile
	src-cpp/rdkafkacpp.h
	src-cpp/rdkafkacpp_int.h
2015-11-24 00:14:47 +01:00
twaters eeda26d87a #433 fix makefile format 2015-11-23 15:24:35 -07:00
twaters c24f50fa51 #433 Merged from #221 2015-11-23 15:09:33 -07:00
Magnus Edenhill ef93390cfb Merge branch 'master' into oct15 2015-11-16 11:38:02 +01:00
Magnus Edenhill 273d67f678 New high-level KafkaConsumer (WIP) 2015-11-03 20:37:38 +01:00
Bob Halley 98aa7ff1aa Add consumer queue support for C++. 2015-10-19 08:57:19 -07:00
Scott Halstead bdb6ece489 add changes for portability to AIX 2015-07-14 08:51:24 -04:00
Thomas D bb3e0d9d65 Silence "uname -o", not supported on all platforms
Prevents errors like

  Checking librdkafka integrity
  librdkafka.1.dylib             OK
  librdkafka.a                   OK
  Symbol visibility              OK
  uname: illegal option -- o
  usage: uname [-amnprsv]
2015-04-30 02:22:58 +02:00
Thomas D 687cd35263 Use "printf" instead of "echo -e" in Makefile for better portability 2015-04-30 02:00:32 +02:00
Magnus Edenhill e7cf2e34ae Use mklove ECHO variable 2015-04-08 14:32:27 +02:00
Eugenio Pérez 49fb15cee5 Merge branch 'master' into WIP-CPP-metadata 2015-02-16 20:43:26 +00:00
Kodekarl cf9cd369bd Added target dependencies for "make -j".
Mainly a case of defining "file-check" to depend on the recipes that build the files that file-check will check.
2015-01-29 00:05:33 +01:00
Rainer Gerhards cf586586fa remove "executable" attribute from source files
more or less cosmetic...
2014-12-11 16:44:26 +01:00
Eugenio Pérez 9e4750cae5 WIP 2014-11-25 22:23:46 +00:00
Magnus Edenhill 7594a1529d Require linkage 2014-11-18 18:07:29 +01:00
Magnus Edenhill 6b7b1dd262 OSX requires linking required libs when creating dylib (issue #161) 2014-11-02 20:26:35 +01:00
Magnus Edenhill b82c67cd69 Dont link C++ library with C library - avoids symbol leakage 2014-10-24 15:31:16 +02:00
Magnus Edenhill d428a4b771 Use .dylib extension on OSX 2014-08-15 10:04:36 +02:00
Magnus Edenhill c484262f02 Dont hide symbols in C++ library (issue #95) 2014-06-10 17:02:35 +02:00
Magnus Edenhill f21682ac34 Now builds on Solaris (issue #110) 2014-05-04 23:38:52 +02:00
Magnus Edenhill 98224a24df Provide linker script for c++ library aswell
Currently only hides the C symbols

(cherry picked from commit 4c118dfeb6f7b384477c0d98806654eec42e1bc7)
2014-03-21 13:56:07 +07:00
Magnus Edenhill 37a3d232f6 Proper linking (for Cygwin, ..) 2014-03-17 09:24:55 +07:00
Magnus Edenhill 8388e25526 Integrated mklove configure 2014-03-16 14:38:19 +07:00