libotp: add libraries after objects

Add dependency on external libraries after dependency on internal
objects so the linker can correctly pick up all symbols.

https://pagure.io/freeipa/issue/7189

Original patch by Rob Crittenden

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes 2017-11-20 11:22:49 +01:00
parent 9e640190ee
commit ba037a3551

View File

@ -15,4 +15,4 @@ libotp_la_LIBADD = libhotp.la
check_PROGRAMS = t_hotp
TESTS = $(check_PROGRAMS)
t_hotp_LDADD = $(NSPR_LIBS) $(NSS_LIBS) libhotp.la
t_hotp_LDADD = libhotp.la $(NSPR_LIBS) $(NSS_LIBS)