[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] gettext and -R
From: |
Ryan Schmidt |
Subject: |
[bug-gettext] gettext and -R |
Date: |
Wed, 1 Oct 2014 19:45:36 -0500 |
Hello, I'm the maintainer of gettext and many other ports in the MacPorts
package management system for OS X. I'm having a problem building another
package, and I believe I've traced the problem back to gettext.
The package I'm trying to build doesn't provide a pre-built configure script or
Makefiles, so I have to run autoreconf.
gettext 0.19.2 provides the file /opt/local/share/aclocal/lib-link.m4 which
contains these lines:
if test "X$ltrpathdirs" != "X"; then
dnl When using libtool, the option that works for both libraries and
dnl executables is -R. The -R options are cumulative.
for found_dir in $ltrpathdirs; do
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
done
fi
I believe it is these lines that are responsible for the following value
appearing in the Makefiles of the package I'm trying to build:
LTLIBICONV = -L/opt/local/lib -liconv -R/opt/local/lib
Because I am using a recent version of clang ("Apple LLVM version 6.0
(clang-600.0.54) (based on LLVM 3.5svn)"), this in turn causes the build of the
other package to fail with this error:
clang: error: unknown argument: '-R/opt/local/lib'
clang has never supported the -R flag, but it was only recently changed from a
warning to an error.
How can we modify gettext's autotools files so that it does instruct other
packages to use unsupported options like -R?
Thanks for your help.
-Ryan
- [bug-gettext] gettext and -R,
Ryan Schmidt <=