Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
1b1a4447
Commit
1b1a4447
authored
Nov 17, 2004
by
Niels Möller
Browse files
(ASM_SYMBOL_PREFIX): Check if global symbols have a
leading underscore. Rev: src/nettle/configure.ac:1.52
parent
c7747446
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
1b1a4447
...
...
@@ -168,7 +168,30 @@ else
fi
AC_SUBST([CCPIC_MAYBE])
LSH_MAKE_CONDITIONAL([ENABLE_ASM], [test x$enable_assembler = xyes])
ASM_SYMBOL_PREFIX=''
if test x$enable_assembler = xyes ; then
AC_CACHE_CHECK([if globals are prefixed by underscore],
nettle_cv_asm_underscore,
[ # Default is no underscore
nettle_cv_asm_underscore=no
AC_COMPILE_IFELSE(
[int a_global_symbol;],
[ nm conftest.$OBJEXT >conftest.out
if grep _a_global_symbol conftest.out >/dev/null ; then
nettle_cv_asm_underscore=yes
elif grep a_global_symbol conftest.out >/dev/null ; then
nettle_cv_asm_underscore=no
else
AC_MSG_WARN([nm doesn't list a_global_symbol at all])
fi],
[AC_MSG_WARN([test program with a single global could not be compiled!?])])])
if x$nettle_cv_asm_underscore=xyes ; then
ASM_SYMBOL_PREFIX='_'
fi
fi
AC_SUBST(ASM_SYMBOL_PREFIX)
AC_SUBST(SHLIBCFLAGS)
AC_SUBST(SHLIBMAJOR)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment