diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cdea5306fa3..c3c89c8ee17 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri May 5 10:29:21 2000 Marc Espie + + * config/openbsd.h (LINK_SPEC): pass correct flags to ld + to support -shared, on platforms with dynamic libraries. + Fri May 5 10:27:06 2000 Philippe De Muyter * system.h (S_ISBLK): Provide fallback definition. diff --git a/gcc/config/openbsd.h b/gcc/config/openbsd.h index 1d813ddbda6..bcf5ff262f0 100644 --- a/gcc/config/openbsd.h +++ b/gcc/config/openbsd.h @@ -119,7 +119,7 @@ Boston, MA 02111-1307, USA. */ "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{assert*}" #else #define LINK_SPEC \ - "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{R*} %{static:-Bstatic} %{assert*}" + "%{!shared:%{!nostdlib:%{!r*:%{!e*:-e start}}}} %{shared:-Bshareable -x} -dc -dp %{R*} %{static:-Bstatic} %{assert*}" #endif #undef LIB_SPEC