projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
flush
[m6w6/ext-psi]
/
m4
/
psi_decl.m4
diff --git
a/m4/psi_decl.m4
b/m4/psi_decl.m4
index a08197e6b2947f48530bc220ff9e9773febadeb4..3bc2558d593cbf60cc23a121c29cff6a71ef64bb 100644
(file)
--- a/
m4/psi_decl.m4
+++ b/
m4/psi_decl.m4
@@
-7,7
+7,7
@@
AC_DEFUN(PSI_FUNC_LIBC_MAIN, [
AC_CACHE_CHECK(for libc start main symbol, psi_cv_libc_main, [
psi_libc_main=
AC_TRY_LINK(PSI_INCLUDES, [(void)0;], [
AC_CACHE_CHECK(for libc start main symbol, psi_cv_libc_main, [
psi_libc_main=
AC_TRY_LINK(PSI_INCLUDES, [(void)0;], [
- psi_libc_main=`$NM -g conftest$ac_exeext | $AWK -F" *|@" '/^
\s
+U / {print$[]3; exit}'`
+ psi_libc_main=`$NM -g conftest$ac_exeext | $AWK -F" *|@" '/^
@<:@@<:@:space:@:>@@:>@
+U / {print$[]3; exit}'`
])
psi_cv_libc_main=$psi_libc_main
])
])
psi_cv_libc_main=$psi_libc_main
])
@@
-22,7
+22,7
@@
AC_DEFUN(PSI_FUNC, [
AC_TRY_LINK(PSI_INCLUDES, [
void (*fn)(void) = (void (*)(void)) $psi_symbol;
], [
AC_TRY_LINK(PSI_INCLUDES, [
void (*fn)(void) = (void (*)(void)) $psi_symbol;
], [
- psi_symbol_redirect=`$NM -g conftest$ac_exeext | $AWK -F" *|@" '/^
\s+U '$psi_cv_libc_main'/ {next} /^\s
+U / {print$[]3; exit}'`
+ psi_symbol_redirect=`$NM -g conftest$ac_exeext | $AWK -F" *|@" '/^
@<:@@<:@:space:@:>@@:>@+U '$psi_cv_libc_main'/ {next} /^@<:@@<:@:space:@:>@@:>@
+U / {print$[]3; exit}'`
])
psi_cv_fn_$1=$psi_symbol_redirect
])
])
psi_cv_fn_$1=$psi_symbol_redirect
])