Skip to content

Commit 74993f3

Browse files
committed
link: add support for libtool version-info and bump to 1.0.0
closes #68; thanks @ararslan and @babelouest Signed-off-by: Hans Zandbelt <hans.zandbelt@openidc.com>
1 parent e597ce2 commit 74993f3

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
03/25/2026
22
- proto: use strncasecmp on content type when obtaining a token from POST; closes #72; thanks @roubert
33
- code: correct strstr assignments to compile with glibc 2.43; closes #73; thanks @Saur2000
4+
- link: add support for libtool version-info and bump to 1.0.0; closes #68; thanks @ararslan and @babelouest
45

56
02/03/2026
67
- code: assign strstr to char instead of const char to compile with globc 2.43

Makefile.am

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ liboauth2_la_pkgconfig_DATA = liboauth2.pc
5151
liboauth2_la_CFLAGS = @CURL_CFLAGS@ @CJOSE_CFLAGS@ @PCRE2_CFLAGS@
5252
liboauth2_la_LIBADD = @CURL_LIBS@ @CJOSE_LIBS@ @PCRE2_LIBS@
5353

54+
liboauth2_la_LDFLAGS = @LIBTOOL_EXTRA_FLAGS@
55+
5456
liboauth2_la_SOURCES = \
5557
src/version.c \
5658
src/mem.c \
@@ -99,6 +101,7 @@ endif
99101

100102
noinst_LTLIBRARIES = liboauth2_cache.la
101103
liboauth2_la_LIBADD += liboauth2_cache.la
104+
102105
liboauth2_cache_la_SOURCES = src/cache.c
103106
liboauth2_cache_la_CPPFLAGS = $(AM_CPPFLAGS)
104107
liboauth2_cache_la_CFLAGS = @CURL_CFLAGS@ @CJOSE_CFLAGS@ @PCRE2_CFLAGS@
@@ -134,6 +137,7 @@ liboauth2_apache_la_pkgconfig_DATA = liboauth2_apache.pc
134137
liboauth2_apache_la_CPPFLAGS = $(AM_CPPFLAGS) -DHAVE_APACHE
135138
liboauth2_apache_la_CFLAGS = @APACHE_CFLAGS@ @PCRE2_CFLAGS@
136139
liboauth2_apache_la_LIBADD = liboauth2.la @APR_LIBS@ @JANSSON_LIBS@
140+
liboauth2_apache_la_LDFLAGS = @LIBTOOL_EXTRA_FLAGS@
137141

138142
includesub_HEADERS += \
139143
include/oauth2/apache.h
@@ -155,6 +159,7 @@ liboauth2_nginx_la_pkgconfig_DATA = liboauth2_nginx.pc
155159
liboauth2_nginx_la_CPPFLAGS = $(AM_CPPFLAGS) -DHAVE_NGINX
156160
liboauth2_nginx_la_CFLAGS = @NGINX_CFLAGS@ @PCRE2_CFLAGS@
157161
liboauth2_nginx_la_LIBADD = liboauth2.la @NGINX_LIBS@ @JANSSON_LIBS@
162+
liboauth2_nginx_la_LDFLAGS = @LIBTOOL_EXTRA_FLAGS@
158163

159164
includesub_HEADERS += \
160165
include/oauth2/nginx.h

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ AC_PROG_CC
99

1010
AX_CODE_COVERAGE
1111

12+
LIBOAUTH2_LIBRARY_VERSION=1:0:0
13+
LIBTOOL_EXTRA_FLAGS="-version-info $LIBOAUTH2_LIBRARY_VERSION"
14+
AC_SUBST([LIBTOOL_EXTRA_FLAGS])
15+
1216
PKG_CHECK_MODULES(OPENSSL, openssl)
1317
AC_SUBST(OPENSSL_CFLAGS)
1418
AC_SUBST(OPENSSL_LIBS)

0 commit comments

Comments
 (0)