summaryrefslogtreecommitdiff
path: root/gcc/config/pa/pa-hpux.h
diff options
context:
space:
mode:
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1994-11-19 04:09:58 +0000
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1994-11-19 04:09:58 +0000
commitb7c87ff22f0902d308f6de7ae5f119d0ca28c720 (patch)
treece0413f36fa899efe1a55c1519059e52060d600b /gcc/config/pa/pa-hpux.h
parent2ec1d248ac9c07424c7ce1fe34738353ab50f2ea (diff)
downloadgcc-b7c87ff22f0902d308f6de7ae5f119d0ca28c720.tar.gz
Shared library support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8519 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pa/pa-hpux.h')
-rw-r--r--gcc/config/pa/pa-hpux.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/pa/pa-hpux.h b/gcc/config/pa/pa-hpux.h
index 66719e8726d..10fa503d6b0 100644
--- a/gcc/config/pa/pa-hpux.h
+++ b/gcc/config/pa/pa-hpux.h
@@ -36,13 +36,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define DEFAULT_GDB_EXTENSIONS 0
/* Like the default, except no -lg. */
-#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}"
+#define LIB_SPEC "%{!shared:%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}}"
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa)"
#undef LINK_SPEC
-#define LINK_SPEC "-u main %{static: -a archive}%{g*: -a archive}"
+#define LINK_SPEC \
+ "%{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}"
/* hpux8 and later have C++ compatable include files, so do not
pretend they are `extern "C"'. */