Skip to content

Commit

Permalink
Merge pull request #162 from dcreager/autotools-install
Browse files Browse the repository at this point in the history
Fix autotools-driven install
  • Loading branch information
dcreager committed Apr 23, 2020
2 parents 704f11d + 1c635ca commit a28c0ee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -99,6 +99,7 @@ endif(CMAKE_C_COMPILER_ID STREQUAL "GNU")
find_package(Threads)
set(THREADS_LDFLAGS "${CMAKE_THREAD_LIBS_INIT}")
set(THREADS_STATIC_LDFLAGS "${CMAKE_THREAD_LIBS_INIT}")
set(PTHREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}")

#-----------------------------------------------------------------------
# Include our subdirectories
Expand Down
5 changes: 4 additions & 1 deletion Makefile.am
Expand Up @@ -73,7 +73,8 @@ config_include_HEADERS = \
include/libcork/config/macosx.h \
include/libcork/config/bsd.h \
include/libcork/config/linux.h \
include/libcork/config/config.h
include/libcork/config/config.h \
include/libcork/config/version.h

core_include_HEADERS = \
include/libcork/core/hash.h \
Expand Down Expand Up @@ -146,6 +147,8 @@ libcork_la_SOURCES = \
src/libcork/posix/subprocess.c \
src/libcork/pthreads/thread.c

pkgconfig_DATA = src/libcork.pc

libcork_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS) -DCORK_API=CORK_EXPORT
libcork_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS) -DCORK_API=CORK_EXPORT
libcork_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS) -version-info 16:3:0
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -43,6 +43,7 @@ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"

# pkg-config
PKG_INSTALLDIR
AC_CONFIG_FILES([src/libcork.pc])

# Tests
Expand Down
4 changes: 2 additions & 2 deletions src/libcork.pc.in
Expand Up @@ -12,5 +12,5 @@ Description: A simple, easily embeddable cross-platform C library
Version: @VERSION@
URL: https://libcork.io/
Libs: -L${libdir} -lcork
Libs.private: @CMAKE_THREAD_LIBS_INIT@
Cflags: -I${includedir}
Libs.private: @PTHREAD_LIBS@
Cflags: -I${includedir} @PTHREAD_CFLAGS@

0 comments on commit a28c0ee

Please sign in to comment.