diff options
-rw-r--r-- | README | 7 | ||||
-rw-r--r-- | mod_lookup_identity.spec | 2 |
2 files changed, 5 insertions, 4 deletions
@@ -188,15 +188,16 @@ Building from sources When building from sources, command - apxs -i -a -c $(pkg-config --cflags dbus-1) \ - mod_lookup_identity.c $(pkg-config --libs dbus-1) -Wall -pedantic + apxs -i -a -c $(pkg-config --cflags dbus-1) $(pkg-config --libs dbus-1) \ + -Wc,"-Wall -pedantic -std=c99" mod_lookup_identity.c should build and install the module. If the available version of sssd does not provide or is not configured to provide the ifp dbus service, compile with - apxs -DNO_USER_ATTR -i -a -c mod_lookup_identity.c -Wall -pedantic + apxs -DNO_USER_ATTR -i -a -c -Wc,"-Wall -pedantic -std=c99" \ + mod_lookup_identity.c In that case, the LookupUserAttr functionality will not be compiled in and will not be available. diff --git a/mod_lookup_identity.spec b/mod_lookup_identity.spec index 0217216..5bc77d3 100644 --- a/mod_lookup_identity.spec +++ b/mod_lookup_identity.spec @@ -34,7 +34,7 @@ Use of REMOTE_USER_* environment variables is recommended. %setup -q -n %{name}-%{version} %build -%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic $(pkg-config --cflags dbus-1)" $(pkg-config --libs dbus-1) mod_lookup_identity.c +%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99 $(pkg-config --cflags dbus-1)" $(pkg-config --libs dbus-1) mod_lookup_identity.c %install rm -rf $RPM_BUILD_ROOT |