Commit Graph

7 Commits

Author SHA1 Message Date
Tim Burke b5ad3290c2 Add dl to pkg-config metadata
This simplifies compiling by allowing users to include

   CFLAGS += `pkg-config --cflags erasurecode-1`
   LDFLAGS += `pkg-config --libs erasurecode-1`

in makefiles. Otherwise, trying to use pkg-config results in errors like

   /usr/local/lib/liberasurecode.so: undefined reference to `dlopen'
   /usr/local/lib/liberasurecode.so: undefined reference to `dlclose'
   /usr/local/lib/liberasurecode.so: undefined reference to `dlerror'
   /usr/local/lib/liberasurecode.so: undefined reference to `dlsym'
   collect2: error: ld returned 1 exit status

Change-Id: I39fb137b1a3b6b2beda1d0b28faef3132229ec3b
2017-07-13 13:26:00 -07:00
Tim Burke a9b20ae6a3 Use zlib for CRC-32
Previously, we had our own CRC that was almost but not quite like
zlib's implementation. However,

* it hasn't been subjected to the same rigor with regard to error-detection
  properties and
* it may not even get used, depending upon whether zlib happens to get
  loaded before or after liberasurecode.

Now, we'll use zlib's CRC-32 when writing new frags, while still
tolerating frags that were created with the old implementation.

Change-Id: Ib5ea2a830c7c23d66bf2ca404a3eb84ad00c5bc5
Closes-Bug: 1666320
2017-07-06 17:40:38 +00:00
Tushar Gohad 28dec505f4 Get version from liberasurecode version header
... (keep version in one place)
2015-12-10 06:09:02 -07:00
Tushar Gohad 92bad94311 Include major API version in pkg-config file name 2015-12-10 04:00:29 -07:00
Tushar Gohad 04dfa2124b Fix liberasurecode include path in pkgconfig 2015-10-20 22:23:14 +00:00
Tushar Gohad ce0543ac70 autoconf: Add Xorcode pkgconfig, other minor fixes
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
2014-06-29 21:42:09 -07:00
Tushar Gohad 56198161ac Library directory structure skeleton
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
2014-06-29 10:00:46 -07:00