no.
* ltmain.in: Add some hacks to make SunOS --enable-shared work
when using GNU ld.
+1998-11-04 Ian Lance Taylor <ian@cygnus.com>
+
+ * ltconfig.in: For sunos4 using GNU ld, set hardcode_minus_L to
+ no.
+ * ltmain.in: Add some hacks to make SunOS --enable-shared work
+ when using GNU ld.
+
1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br>
* THANKS: Added Marc J. Fraioli
sunos4*)
archive_cmds='$LD -assert pure-text -Bstatic -o $lib$libobjs'
hardcode_direct=yes
- hardcode_minus_L=yes
+ # The GNU linker will only hardcode -L options if -rpath is not
+ # used, but we will be using -rpath because we set
+ # hardcode_libdir_flag_spec below.
+ hardcode_minus_L=no
hardcode_shlibpath_var=no
;;
if test "$hardcode_direct" = no; then
compile_command="$compile_command $dir/$linklib"
elif test "$hardcode_minus_L" = no; then
+ case "$host" in
+ *-*-sunos*)
+ compile_shlibpath="$compile_shlibpath$dir:"
+ ;;
+ esac
compile_command="$compile_command -L$dir -l$name"
elif test "$hardcode_shlibpath_var" = no; then
compile_shlibpath="$compile_shlibpath$dir:"
major=
versuffix=
verstring="0.0"
- case "$version_type" in
- sunos)
+ case "$host" in
+ *-*-sunos*)
versuffix=".0.0"
;;
esac