aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libtls-standalone/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-10-25 13:16:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-10-25 13:26:44 +0000
commit58eab1efe8a08dc06020c9c494111c81d7a2f860 (patch)
tree0e8a040a6b31510cf59bdab423e1a39b1ae11fa0 /testing/libtls-standalone/Makefile
parent67ef956a27f195cf4c5e3b6b62712b98dae3624b (diff)
downloadaports-58eab1efe8a08dc06020c9c494111c81d7a2f860.tar.gz
aports-58eab1efe8a08dc06020c9c494111c81d7a2f860.tar.bz2
aports-58eab1efe8a08dc06020c9c494111c81d7a2f860.tar.xz
testing/libtls-standalone: change SOVERSION
avoid conflict with libressl's libtls by change the soversion to something completely different.
Diffstat (limited to 'testing/libtls-standalone/Makefile')
-rw-r--r--testing/libtls-standalone/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/testing/libtls-standalone/Makefile b/testing/libtls-standalone/Makefile
index 7b6806ecb4..64c794aa2a 100644
--- a/testing/libtls-standalone/Makefile
+++ b/testing/libtls-standalone/Makefile
@@ -4,8 +4,8 @@ LIBDIR = ${PREFIX}/lib
INCLUDEDIR = ${PREFIX}/include
LIBRESSL_VERSION = 1.0
-LIBTLS_SOVERSION = 17
-LIBTLS_FULLVERSION = 17.0.1
+LIBTLS_SOVERSION = 1.1
+LIBTLS_FULLVERSION = 1.1.0
OPENSSL_CFLAGS = $(shell pkgconf openssl --cflags)
OPENSSL_LIBS = $(shell pkgconf openssl --libs)
@@ -35,7 +35,7 @@ SOURCES = \
OBJECTS = ${SOURCES:.c=.o}
-all: dumpconfig libtls.so.${LIBTLS_FULLVERSION} libtls.pc
+all: dumpconfig libtls.so.${LIBTLS_FULLVERSION} libtls.so.${LIBTLS_SOVERSION} libtls.pc
dumpconfig:
@echo "Building with:"
@@ -46,18 +46,21 @@ dumpconfig:
.c.o:
${CC} ${CFLAGS} -o $@ -c $<
+libtls.so.${LIBTLS_SOVERSION}: libtls.so.${LIBTLS_FULLVERSION}
+ ln -s $< $@
+
libtls.so.${LIBTLS_FULLVERSION}: ${OBJECTS}
${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${OPENSSL_LIBS}
check: test_program
- LD_PRELOAD=./libtls.so.${LIBTLS_FULLVERSION} ./test_program
+ LD_LIBRARY_PATH=$$PWD ./test_program
test_program: test_program.c
${CC} -I${LIBRESSL_SRCDIR}/include -o $@ test_program.c ./libtls.so.${LIBTLS_FULLVERSION}
clean:
rm -f ${OBJECTS}
- rm -f libtls.so.${LIBTLS_FULLVERSION}
+ rm -f libtls.so.${LIBTLS_FULLVERSION} libtls.so.${LIBTLS_SOVERSION}
rm -f test_program
install: