diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-06-27 19:03:40 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-06-27 19:03:40 (GMT) |
commit | 74a50972fbd7c9f5e1d10aa72ce770123521da2f (patch) | |
tree | d5600485e3a7a05fc60baadcaec43494fac35ffb /configure | |
parent | 87425910c2f76411d9328b694a307e09452eee96 (diff) |
configure: disable static linking on Darwin
Static liunking is not supported on Darwin, so hide the corresponding
options when the build machine is Darwin.
Reported-by: Andrea Franceschini <therealmorpheu5@gmail.com>
Reported-by: Bryan Hundven <bryanhundven@gmail.com>
Reported-by: "Titus von Boxberg" <titus@v9g.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -449,6 +449,30 @@ case "${host}" in ;; esac +printf "Checking if static linking is possible... " +static_link_ok="" +case "${host}" in + Darwin) ;; + *) tmp=.static.tmp + if gcc -xc - -static -o "${tmp}" >/dev/null 2>&1<<-_EOF_ + int main() { return 0; } + _EOF_ + then + static_link_ok="y" + fi + rm -f "${tmp}" + ;; +esac +if [ "${static_link_ok}" = "y" ]; then + printf "yes\n" +else + printf "no\n" + printf " * An optional host feature is missing, some features will be disabled:\n" + printf " * - It will not be possible to statically link toolchain's binaries\n" +fi +add_to_kconfig_list static_link_ok + +# Library checks ncurses_hdrs="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h" ncurses_libs="$( for l in ncursesw ncurses curses; do \ for x in so a dylib; do \ |