summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2004-02-09 02:38:28 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2004-02-09 02:38:28 +0000
commit441fd02028f2d27c3c6d75d73a1aa2d10166cb3b (patch)
tree1a32d80418b481bd783456c8df36d711cbd963c1
parentf13a534348bbb5ba5cc6828c336a45a77f844f78 (diff)
Corrected lib_specs for OPENBSD/arm shared libraries. copied from alpha.
-rw-r--r--gnu/usr.bin/gcc/gcc/config/arm/openbsd.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/arm/openbsd.h b/gnu/usr.bin/gcc/gcc/config/arm/openbsd.h
index 7091fd0d8f3..524f864a98e 100644
--- a/gnu/usr.bin/gcc/gcc/config/arm/openbsd.h
+++ b/gnu/usr.bin/gcc/gcc/config/arm/openbsd.h
@@ -80,10 +80,15 @@ Boston, MA 02111-1307, USA. */
#undef OBSD_LINK_SPEC
#ifdef OBSD_NO_DYNAMIC_LIBRARIES
#define OBSD_LINK_SPEC \
- "%{g:%{!nostdlib:-L/usr/lib/debug}} %{!nostdlib:%{!r*:%{!e*:-e %(openbsd_entry_point)}}} -dc -dp %{assert*}"
+ "%{!nostdlib:%{!r*:%{!e*:-e __start}}} %{assert*}"
#else
#define OBSD_LINK_SPEC \
- "%{g:%{!nostdlib:-L/usr/lib/debug}} %{!shared:%{!nostdlib:%{!r*:%{!e*:-e %(openbsd_entry_point)}}}} %{shared:-Bshareable -x} -dc -dp %{R*} %{static:-Bstatic} %{assert*}"
+ "%{!shared:%{!nostdlib:%{!r*:%{!e*:-e __start}}}} \
+ %{shared:-shared} %{R*} \
+ %{static:-Bstatic} \
+ %{!static:-Bdynamic} \
+ %{assert*} \
+ %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}"
#endif
#undef SUBTARGET_EXTRA_ASM_SPEC