Include only necessary libs when calling apxs
authorSimo Sorce <simo@redhat.com>
Fri, 29 Aug 2014 17:29:42 +0000 (13:29 -0400)
committerSimo Sorce <simo@redhat.com>
Fri, 29 Aug 2014 18:02:07 +0000 (14:02 -0400)
Drop cflags and libs options that make apxs unhappy

Closes #3

configure.ac
src/Makefile.am

index 18dc7a9..e20a83a 100644 (file)
@@ -70,7 +70,7 @@ AC_SUBST([GSSAPI_CFLAGS])
 AC_SUBST([GSSAPI_LIBS])
 
 CFLAGS="`${APXS} -q CFLAGS` `${APR} --cflags` ${GSSAPI_CFLAGS} ${OPENSSL_CFLAGS} -I`${APXS} -q INCLUDEDIR` -I`${APR} --includes`"
-LIBS="`${APR} --link-libtool --libs` ${GSSAPI_LIBS} ${OPENSSL_LIBS}"
+LIBS="`${APR} --libs` ${GSSAPI_LIBS} ${OPENSSL_LIBS}"
 
 AC_CONFIG_FILES([Makefile src/Makefile])
 
index bd001f3..9fac277 100644 (file)
@@ -1,7 +1,7 @@
 EXTRA_DIST = mod_auth_gssapi.c sessions.c crypto.c mod_auth_gssapi.h sessions.h crypto.h
 
 all-local:
-       @APXS@ -c ${LIBS} ${CFLAGS} mod_auth_gssapi.c sessions.c crypto.c
+       @APXS@ -c ${LIBS} mod_auth_gssapi.c sessions.c crypto.c
 
 install-exec-local:
        if test ! -d ${APXS_LIBEXECDIR}; then mkdir -p ${APXS_LIBEXECDIR}; fi