objc testsuite patch

Alexandre Oliva aoliva@redhat.com
Wed Aug 2 18:36:00 GMT 2000


On Aug  2, 2000, Geoff Keating <geoffk@cygnus.com> wrote:

> +	* lib/objc.exp (objc_target_compile): Look for libobjc.a in
> +	libobjc/.libs to allow for libtool.

Libtool may also use _libs instead of .libs on platforms that don't
supposed `.libs' as a valid directory name.  Is it worth accounting
for?

Also, if someone configures libobjc with --disable-static, there will
only be a shared libobjc library.

The fully correct way to do this is to look for
libobjc/[._]libs/libobjc.la then pick the definition of `old_library'
in it, which will be a relative pathname.  But I'd go with
libobjc/[._]libs/libobjc.a for now.  In fact, I'm not even sure we
should care about _libs; I don't recall having seen it used on any
platform.  Maybe DOS+DJGPP?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-patches mailing list