[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autoconf protype breaks GCC builtin inlining
From: |
Ferenc Wágner |
Subject: |
Re: Autoconf protype breaks GCC builtin inlining |
Date: |
Thu, 25 Jan 2018 23:44:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Jeffrey Walton <address@hidden> writes:
> AC_MSG_CHECKING([if $LDNAME supports $LDFLAGS])
> AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
> [AC_MSG_RESULT([yes]); AC_SUBST([tr_RESULT], [1])],
> [AC_MSG_RESULT([no]); AC_SUBST([tr_RESULT], [0])]
> )
Thanks for the example! Why is AC_COMPILE_IFELSE enough? Don't you
have to invoke the linker itself to see if it accepts the option passed
through? And is the "-Wl," part applicable to most/all compilers?
BTW my other generic linker option is --enable-new-dtags. I'd be
interested to hear opinions about its usage as well. I found no other
way to run build-time test for a shared library dlopening modules.
(I know libtool can provide better portability than dlopen.)
--
Thanks,
Feri