* configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
authorIan Lance Taylor <ian@airs.com>
Mon, 8 Apr 1996 16:22:17 +0000 (16:22 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 8 Apr 1996 16:22:17 +0000 (16:22 +0000)
host when configuring with --enable-shard.

bfd/ChangeLog
bfd/configure.host

index 2d2d303de878d923a51ca6d09699014171a1cdd8..33e55a4abfa5fe655721df32c556728d49db028f 100644 (file)
@@ -1,3 +1,8 @@
+Mon Apr  8 12:09:36 1996  Ian Lance Taylor  <ian@cygnus.com>
+
+       * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
+       host when configuring with --enable-shard.
+
 Fri Apr  5 12:24:13 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
index 320faa4df71d3f8e155cf06fa5876114506589c9..73d69fd439caea2110f0e9401dd61804700e0614 100644 (file)
@@ -71,6 +71,8 @@ if [ "${shared}" = "true" ]; then
   *-dec-osf*)
     # -fpic is not needed on the Alpha.
     PICFLAG=
+    HLDFLAGS='-rpath $(libdir)'
+    SHLIB_CFLAGS='-shared -Wl,-soname,$(SONAME)'
     ;;
   *-*-hpux*)
     # HP/UX uses .sl for shared libraries.
@@ -89,7 +91,10 @@ if [ "${shared}" = "true" ]; then
     ;;
   *-*-linux*)
     SHLIB_CFLAGS='-shared -Wl,-soname,$(SONAME)'
-    HLDFLAGS='-Wl,-rpath,$(libdir)'
+    case "$(libdir)" in
+      /lib | /usr/lib) ;;
+      *) HLDFLAGS='-Wl,-rpath,$(libdir)' ;;
+    esac
     ;;
   *-*-sysv4* | *-*-solaris*)
     SHLIB_CFLAGS='-shared -h $(SONAME)'