Projects
openEuler:22.03:LTS:LoongArch
cyrus-sasl
_service:tar_scm_kernel_repo:backport-configure...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:backport-configure.ac-avoid-side-effects-in-AC_CACHE_VAL.patch of Package cyrus-sasl
From 15cbc14aeb4b754b1b3db65f7c892c7deabaab41 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup <praiskup@redhat.com> Date: Thu, 1 Apr 2021 17:17:52 +0200 Subject: [PATCH] configure.ac: avoid side-effects in AC_CACHE_VAL In the COMMANDS-TO-SET-IT argument, per Autoconf docs: https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Caching-Results.html Signed-off-by: Pavel Raiskup <praiskup@redhat.com> --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f3e5ddc..79c93c8 100644 --- a/configure.ac +++ b/configure.ac @@ -221,11 +221,14 @@ void foo() { int i=0;} int main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY); if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo"); if(ptr1 && !ptr2) exit(0); } exit(1); } -], [sasl_cv_dlsym_adds_uscore=yes], sasl_cv_dlsym_adds_uscore=no - AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ for dlsym?]), +], [sasl_cv_dlsym_adds_uscore=yes], sasl_cv_dlsym_adds_uscore=no, AC_MSG_WARN(cross-compiler, we'll do our best))) LIBS="$cmu_save_LIBS" AC_MSG_RESULT($sasl_cv_dlsym_adds_uscore) + + if test "$sasl_cv_dlsym_adds_uscore" = no; then + AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ for dlsym?]) + fi fi fi -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.