Pass necessary compiler and linker flags.
authorLinus Nordberg <linus@nordu.net>
Tue, 27 Sep 2011 17:50:13 +0000 (19:50 +0200)
committerLinus Nordberg <linus@nordu.net>
Tue, 27 Sep 2011 17:50:13 +0000 (19:50 +0200)
All the source files compiled into the library needs all flags too.

Makefile.am

index 70f9284..f83295c 100644 (file)
@@ -34,9 +34,11 @@ catgconf_SOURCES = \
        gconfig.c \
        catgconf.c
 
-radsecproxy_CFLAGS = \
+librsp_a_CFLAGS = \
        -g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@
-radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
+librsp_a_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
+radsecproxy_CFLAGS = $(librsp_a_CFLAGS)
+radsecproxy_LDFLAGS = $(librsp_a_LDFLAGS)
 radsecproxy_LDADD = librsp.a @SSL_LIBS@
 
 catgconf_CFLAGS = -g -Wall -fno-strict-aliasing @TARGET_CFLAGS@