diff --git a/Makefile.am b/Makefile.am
index 785da44..3c05b67 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -42,7 +42,7 @@ AM_YFLAGS = -d -p v29nfy_
AM_LFLAGS = -Pv29nfy_ -olex.yy.c
libservicelog_la_LDFLAGS = -module -version-info \
- @GENERIC_API_VERSION@ -release @GENERIC_RELEASE@
+ @GENERIC_API_VERSION@ -release @GENERIC_RELEASE@ $(AM_LDFLAGS)
check_PROGRAMS = src/tests/test_libservicelog
src_tests_test_libservicelog_SOURCES = src/tests/test_libservicelog.c