+2000-07-10 Alexandre Oliva <aoliva@lsd.ic.unicamp.br>
+
+ * ltconfig.in (netbsd*): archive_cmds and archive_expsym_cmds
+ were reversed with respect to definition of __ELF__.
+ From Keisuke Inoue <keisuke@csl.sony.co.jp>
+ * ltconfig.in (wlarc, netbsd, aout): Set to empty.
+ (hardcode_dynamic_flag_spec, export_dynamic_flag_spec): Use it.
+
2000-07-10 Corinna Vinschen <vinschen@cygnus.com>
* ltconfig.in: Check for host_os beeing one of `cygwin', `mingw'
#! /bin/sh
# ltconfig - Create a system-specific libtool.
-# Copyright (C) 1996-1999 Free Software Foundation, Inc.
+# Copyright (C) 1996-2000 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is free software; you can redistribute it and/or modify it
netbsd*)
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
+ wlarc=
+ else
archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
- # can we support soname and/or expsyms with a.out? -oliva
fi
;;
if test "$ld_shlibs" = yes; then
runpath_var=LD_RUN_PATH
- hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec='${wl}--export-dynamic'
+ hardcode_libdir_flag_spec="$wlarc"'--rpath '"$wlarc"'$libdir'
+ export_dynamic_flag_spec="$wlarc"'--export-dynamic'
case $host_os in
cygwin* | mingw*)
# dlltool doesn't understand --whole-archive et. al.