1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Use proper 'ar' program when cross-compiling or when AR is specified.

This commit is contained in:
Bruno Haible
2016-11-26 17:15:35 +01:00
parent b468e3aae0
commit 31784d388f
3 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
2016-11-26 Bruno Haible <bruno@clisp.org>
Use proper 'ar' program when cross-compiling or when AR is specified.
* lib/configure.ac (AR): Determine through AC_CHECK_TOOL.
* lib/Makefile.in (AR): Use value determined by 'configure'.
Reported by György Andrasek <jurily@gmail.com>
at <http://lists.gnu.org/archive/html/bug-gperf/2014-04/msg00000.html>.
2016-11-26 Bruno Haible <bruno@clisp.org> 2016-11-26 Bruno Haible <bruno@clisp.org>
Avoid 'warning: cast from pointer to integer of different size' Avoid 'warning: cast from pointer to integer of different size'

View File

@@ -41,7 +41,7 @@ CXXCPP = @CXXCPP@
# Both C and C++ compiler # Both C and C++ compiler
OBJEXT = @OBJEXT@ OBJEXT = @OBJEXT@
# Other # Other
AR = ar AR = @AR@
AR_FLAGS = rc AR_FLAGS = rc
RANLIB = @RANLIB@ RANLIB = @RANLIB@
MV = mv MV = mv

View File

@@ -1,6 +1,6 @@
dnl autoconf configuration for gperf/lib dnl autoconf configuration for gperf/lib
dnl Copyright (C) 1998, 2002, 2005, 2007, 2009 Free Software Foundation, Inc. dnl Copyright (C) 1998, 2002, 2005, 2007, 2009, 2016 Free Software Foundation, Inc.
dnl Written by Douglas C. Schmidt <schmidt@ics.uci.edu> dnl Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
dnl and Bruno Haible <bruno@clisp.org>. dnl and Bruno Haible <bruno@clisp.org>.
dnl dnl
@@ -33,6 +33,8 @@ AC_PROG_CXX
dnl sets variable CXX dnl sets variable CXX
AC_PROG_CXXCPP AC_PROG_CXXCPP
dnl sets variable CXXCPP dnl sets variable CXXCPP
AC_CHECK_TOOL([AR], [ar])
dnl sets variable AR
AC_PROG_RANLIB AC_PROG_RANLIB
dnl sets variable RANLIB dnl sets variable RANLIB
CL_PROG_INSTALL CL_PROG_INSTALL