diff options
author | Yury Usishchev <y.usishchev@samsung.com> | 2016-02-11 17:26:25 +0300 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2016-03-02 12:41:28 +0100 |
commit | 6154283874a29bc7bcd4b089f12a038f41625dbc (patch) | |
tree | dee3c86fdda090a9edb91c9534aad4e957060fe9 /include/Makemodule.am | |
parent | d58d3b78633a5bbdac781f5421e89a641c599818 (diff) | |
download | acl-6154283874a29bc7bcd4b089f12a038f41625dbc.tar.gz |
Cleanup visibility of API functions
Add visibility attribute to public headers and -fvisibility=hidden
compiler option when visibility is supported by compiler.
Diffstat (limited to 'include/Makemodule.am')
-rw-r--r-- | include/Makemodule.am | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/include/Makemodule.am b/include/Makemodule.am index 37364d3..e4c5df8 100644 --- a/include/Makemodule.am +++ b/include/Makemodule.am @@ -1,10 +1,22 @@ -pkginclude_HEADERS += \ - include/libacl.h - -sysinclude_HEADERS += \ - include/acl.h - noinst_HEADERS += \ + include/libacl.h \ + include/acl.h \ include/acl_ea.h \ include/misc.h \ include/walk_tree.h + +SUBST_INSTALL_HEADER = \ + subst_install_header() { \ + file=`echo "$$1" | sed -e 's,^.*/,,'`; \ + $(SED) -e "s/\<EXPORT\>/extern/" < "$$1" > "include/$$file.t" || exit 1; \ + $(MKDIR_P) "$$2" || exit 1; \ + $(INSTALL_HEADER) "include/$$file.t" "$$2/$$file" || exit 1; \ + $(RM) "include/$$file.t"; \ + }; \ + subst_install_header + +install-libacl_h: include/libacl.h + $(SUBST_INSTALL_HEADER) "$<" "$(DESTDIR)$(pkgincludedir)" +install-acl_h: include/acl.h + $(SUBST_INSTALL_HEADER) "$<" "$(DESTDIR)$(sysincludedir)" +install-data-local: install-libacl_h install-acl_h |