This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gold: Fix a minor bug in --exclude-libs.
- From: Ian Lance Taylor <iant at google dot com>
- To: Doug Kwan (éæå) <dougkwan at google dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 19 May 2009 22:49:00 -0700
- Subject: Re: [PATCH] gold: Fix a minor bug in --exclude-libs.
- References: <498552560905191826j48291913ub8f2b9b0bafb89d1@mail.gmail.com>
"Doug Kwan (éæå)" <dougkwan@google.com> writes:
> 2009-05-19 Doug Kwan <dougkwan@google.com>
>
> * options.cc (General_options::check_excluded_libs): Strip
> off directories in archive name before matching like GNU ld does.
> * testsuite/Makefile.am (MOSTLYCLEANFILES,
> exclude_libs_test_DEPENDENCIES): Add alt/libexclude_libs_test_3.a
> (exclude_libs_test_LDFLAGS): Add linker option
> -Wl,--exclude-libs,libexclude_libs_test_3
> (exclude_libs_test_LADD): Add alt/libexclude_libs_test_3.a as
> an explicit archive without using -l.
> (alt/libexclude_libs_test_3.a): New make rule.
> * testsuite/Makefile.in: Regenerate.
> * testsuite/exclude_libs_test.c : Declare lib3_default().
> (main): Call it.
> * exclude_libs_test.sh: Add tests for alt/exclude_libs_test_3.a.
> * exclude_libs_test_3.c: New file.
This is OK.
Thanks.
> +alt/libexclude_libs_test_3.a: exclude_libs_test_3.o
> + $(TEST_AR) rc $@ $^
Does this work if the directory "alt" has not already been created?
Ian