X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libdecnumber%2Fconfigure.ac;h=16c7465b32751aa0cb5491ddfe826518786e39fe;hb=c802e8a76c4eaa3a8a62d7dcfe7be98bf718a2f0;hp=6cfc8033eae76937b32d6f63117da473882cecf8;hpb=564027b8a9792a79467d4d9d972ee0c46d82fd11;p=deliverable%2Fbinutils-gdb.git diff --git a/libdecnumber/configure.ac b/libdecnumber/configure.ac index 6cfc8033ea..16c7465b32 100644 --- a/libdecnumber/configure.ac +++ b/libdecnumber/configure.ac @@ -1,7 +1,7 @@ # configure.ac for libdecnumber -*- Autoconf -*- # Process this file with autoconf to generate a configuration script. -# Copyright (C) 2005-2013 Free Software Foundation, Inc. +# Copyright (C) 2005-2018 Free Software Foundation, Inc. # This file is part of GCC. @@ -19,7 +19,6 @@ # along with GCC; see the file COPYING3. If not see # . -AC_PREREQ(2.64) AC_INIT(libdecnumber, [ ], gcc-bugs@gcc.gnu.org, libdecnumber) AC_CONFIG_SRCDIR(decNumber.h) AC_CONFIG_MACRO_DIR(../config) @@ -43,6 +42,8 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \ -Wmissing-format-attribute -Wcast-qual]) ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long]) +ACX_PROG_CC_WARNING_OPTS([-fno-lto], [nolto_flags]) + # Only enable with --enable-werror-always until existing warnings are # corrected. ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual]) @@ -95,6 +96,13 @@ AC_SUBST(ADDITIONAL_OBJS) AC_C_BIGENDIAN +# Enable --enable-host-shared. +AC_ARG_ENABLE(host-shared, +[AS_HELP_STRING([--enable-host-shared], + [build host code as shared libraries])], +[PICFLAG=-fPIC], [PICFLAG=]) +AC_SUBST(PICFLAG) + # Output. AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])