package/libpam-tacplus: fix build without SSP
PATCH 1/1 package/libpam-tacplus: fix build without SSP
Use --disable-am-ldcflags which is available since version 1.4.1 and
https://github.com/kravietz/pam_tacplus/commit/b1054ad8bb337ac30ec56434e03bfb976ca14213
to avoid the following build failure without stack-protector raised since bump to version 1.7.0 in
commit 160f0e4b5f161d1966a70ad36679a9f5e9dfa9d3:
cc1: warning: '-fstack-protector' not supported for this target
In file included from libtac/lib/xstrncpy.c:36:libtac/lib/xstrncpy.c: In function 'xstrncpy':./libtac/include/libtac.h:71:15: error: called object is not a function or function pointer
71 | #define abort exit(EXIT_FAILURE)
| ^~~~
Fixes:
- http://autobuild.buildroot.org/results/cc8a7c5cca65e002d40a775f09e3c4577fbab5b7
--- package/libpam-tacplus/libpam-tacplus.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
package/libpam-tacplus/libpam-tacplus.mk +1 -3
@@ -17,8 +17,6 @@ LIBPAM_TACPLUS_DEPENDENCIES = \ # We're patching Makefile.am LIBPAM_TACPLUS_AUTORECONF = YES LIBPAM_TACPLUS_INSTALL_STAGING = YES -LIBPAM_TACPLUS_CONF_ENV = \ - ax_cv_check_cflags___fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no) -LIBPAM_TACPLUS_CONF_OPTS = --disable-werror +LIBPAM_TACPLUS_CONF_OPTS = --disable-am-ldcflags --disable-werror $(eval $(autotools-package))
Signature · 6 lines
2.42.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedFabrice, All,
On 2023-11-26 19:29 +0100, Fabrice Fontaine spake thusly:
Quoted 1 line
Use --disable-am-ldcflags which is available since version 1.4.1 and
It was not clear to me what this flag would do, nor why it would solve the issue.
So I rewrote the commit log with a more detailed explanations.
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 41 lines
https://github.com/kravietz/pam_tacplus/commit/b1054ad8bb337ac30ec56434e03bfb976ca14213
to avoid the following build failure without stack-protector raised since bump to version 1.7.0 in
commit160f0e4b5f161d1966a70ad36679a9f5e9dfa9d3:cc1: warning: '-fstack-protector' not supported for this target
In file included fromlibtac/lib/xstrncpy.c:36:libtac/lib/xstrncpy.c: In function 'xstrncpy':./libtac/include/libtac.h:71:15: error: called object is not a function or function pointer
71 | #define abortexit(EXIT_FAILURE)
| ^~~~Fixes:
- http://autobuild.buildroot.org/results/cc8a7c5cca65e002d40a775f09e3c4577fbab5b7Signed-off-by Fabrice Fontaine <[email protected]>--- package/libpam-tacplus/libpam-tacplus.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)package/libpam-tacplus/libpam-tacplus.mk +1
-3@@ -17,8 +17,6 @@ LIBPAM_TACPLUS_DEPENDENCIES = \ # We're patching Makefile.am LIBPAM_TACPLUS_AUTORECONF = YES LIBPAM_TACPLUS_INSTALL_STAGING = YES -LIBPAM_TACPLUS_CONF_ENV = \ - ax_cv_check_cflags___fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no) -LIBPAM_TACPLUS_CONF_OPTS = --disable-werror +LIBPAM_TACPLUS_CONF_OPTS = --disable-am-ldcflags --disable-werror $(eval $(autotools-package))Signature · 6 lines
2.42.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot