This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Use libstdc++-raw-cxx.m4 in libjava
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, Paolo Bonzini <bonzini at gnu dot org>, DJ Delorie <dj at redhat dot com>, neroden at gcc dot gnu dot org, Alexandre Oliva <aoliva at redhat dot com>, Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 02 Jan 2013 12:27:23 +0100
- Subject: Re: Use libstdc++-raw-cxx.m4 in libjava
- References: <CAMe9rOozsRTt6UAoucB6hbw4eKbhN5U5YZBSE0etB5Lj_emZfA@mail.gmail.com> <20130102111116.GP2315@tucnak.redhat.com>
Jakub Jelinek <jakub@redhat.com> writes:
> On Tue, Dec 11, 2012 at 02:00:18PM -0800, H.J. Lu wrote:
>> 2012-12-11 H.J. Lu <hongjiu.lu@intel.com>
>>
>> * libstdc++-raw-cxx.m4 (GCC_LIBSTDCXX_RAW_CXX_FLAGS): Also
>> AC_SUBST LIBSTDCXX_RAW_CXX_LDFLAGS.
>
>> --- a/config/libstdc++-raw-cxx.m4
>> +++ b/config/libstdc++-raw-cxx.m4
>> @@ -14,13 +14,17 @@
>> # along with GCC; see the file COPYING3. If not see
>> # <http://www.gnu.org/licenses/>.
>>
>> -# Define compiler flags, LIBSTDCXX_RAW_CXX_CXXFLAGS, for libstdc++-v3
>> -# header files to compile libraries in C++ with raw_cxx=true.
>> +# Define flags, LIBSTDCXX_RAW_CXX_CXXFLAGS and # LIBSTDCXX_RAW_CXX_LDFLAGS,
>> +# for libstdc++-v3 header files to compile and link libraries in C++ with
>> +# raw_cxx=true.
>> AC_DEFUN([GCC_LIBSTDCXX_RAW_CXX_FLAGS], [
>> AC_REQUIRE([ACX_NONCANONICAL_TARGET])
>> LIBSTDCXX_RAW_CXX_CXXFLAGS="\
>> -I\$(top_builddir)/../libstdc++-v3/include \
>> -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
>> -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
>> + LIBSTDCXX_RAW_CXX_LDFLAGS="\
>> + -I\$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
>
> -I..../libstdc++-v3/src/libstdc++.la ? That can't be right, libstdc++.la
> is not a directory containing header files.
And a library shouldn't be put on LDFLAGS, but on LIBADD. And
LIBSTDCXX_RAW_CXX_LDLAGS doesn't exist.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."