Skip to content

Commit

Permalink
Cleanup linking
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
LinuxJedi committed Mar 28, 2019
1 parent ad0911e commit 467d595
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/appendix/version_history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Version 1.1.1
* Make :c:func:`ms3_init` and :c:func:`ms3_thread_init` treat empty string base_domain as ``NULL``
* Add :c:func:`ms3_free`
* Add :c:func:`ms3_buffer_chunk_size`
* Cleanup linking

Version 1.1.0 GA (2019-03-27)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion libmarias3.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Description: a C connector for Amazon's S3.

Libs: -L${libdir} -lcurl @LIBS@
Libs: -L${libdir} @LIBS@
Cflags: -I${includedir}
4 changes: 4 additions & 0 deletions src/marias3.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ ms3_st *ms3_init(const char *s3key, const char *s3secret, const char *region,

void ms3_deinit(ms3_st *ms3)
{
if (not ms3)
{
return;
}
ms3debug("deinit: 0x%" PRIXPTR, (uintptr_t)ms3);
free(ms3->region);
curl_easy_cleanup(ms3->curl);
Expand Down
12 changes: 6 additions & 6 deletions tests/include.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@ LIBTOOL_COMMAND= ${abs_top_builddir}/libtool --mode=execute
GDB_COMMAND= $(LIBTOOL_COMMAND) gdb -f -x support/run.gdb

t_error_SOURCES= tests/error.c
t_error_LDADD= src/libmarias3.la @LIBMHASH_LIB@
t_error_LDADD= src/libmarias3.la
check_PROGRAMS+= t/error
noinst_PROGRAMS+= t/error

t_basic_SOURCES= tests/basic.c
t_basic_LDADD= src/libmarias3.la @LIBMHASH_LIB@
t_basic_LDADD= src/libmarias3.la
check_PROGRAMS+= t/basic
noinst_PROGRAMS+= t/basic

t_basic_thread_SOURCES= tests/basic_thread.c
t_basic_thread_LDADD= src/libmarias3.la @LIBMHASH_LIB@
t_basic_thread_LDADD= src/libmarias3.la
check_PROGRAMS+= t/basic_thread
noinst_PROGRAMS+= t/basic_thread

t_large_file_SOURCES= tests/large_file.c
t_large_file_LDADD= src/libmarias3.la @LIBMHASH_LIB@
t_large_file_LDADD= src/libmarias3.la
check_PROGRAMS+= t/large_file
noinst_PROGRAMS+= t/large_file

t_prefix_SOURCES= tests/prefix.c
t_prefix_LDADD= src/libmarias3.la @LIBMHASH_LIB@
t_prefix_LDADD= src/libmarias3.la
check_PROGRAMS+= t/prefix
noinst_PROGRAMS+= t/prefix

t_longlist_SOURCES= tests/longlist.c
t_longlist_LDADD= src/libmarias3.la @LIBMHASH_LIB@
t_longlist_LDADD= src/libmarias3.la
t_longlist_LDADD+= -lpthread
check_PROGRAMS+= t/longlist
noinst_PROGRAMS+= t/longlist

0 comments on commit 467d595

Please sign in to comment.