HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to include libgcc.a in the makefile
Operating System - HP-UX
1827295
Members
2182
Online
109717
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 08:59 AM
03-31-2004 08:59 AM
how to include libgcc.a in the makefile
I am trying to compile openssh 3.8 on 11.0 box, and it needs libgcc.a. It is located under /usr/local/lib/gcc-lib/hppa2.on-hp-hpux11.00/3.3.2.
In Makefile, there is a line:
LIBS=-lcrypto -lnsl -lxnet -lsec -lz
How should I add the libgcc in the line, and
any other chnages I need to make, ex, SHLIB_PATH, or LD_LIBRARY_PATH.
Please let me know.
Thanks,
In Makefile, there is a line:
LIBS=-lcrypto -lnsl -lxnet -lsec -lz
How should I add the libgcc in the line, and
any other chnages I need to make, ex, SHLIB_PATH, or LD_LIBRARY_PATH.
Please let me know.
Thanks,
none
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 09:25 AM
03-31-2004 09:25 AM
Re: how to include libgcc.a in the makefile
The convention is that -lnsl (for example) is shorthand for libnsl.a (if I assume you are using the archive .a versions of the library). This also means that the linker expect the libraries to be found in the standard locations (usually /usr/lib). The list of standard lirary locations can be augmented with -L options like -L /usr/local/lib/gcc-lib/hppa2. These are generally defined in $(LDFLAGS) in a makefile but that is determined by the makefile. In the worst case, you can spell out the pathname of the library in full detail.
Man ld for details.
Man ld for details.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 03:10 PM
03-31-2004 03:10 PM
Re: how to include libgcc.a in the makefile
IMHO you copy libgcc.a into /usr/local/lib and then do ./configure and then make; this has generally resolved my problems on linux OS's; seems to be true for HP_UX as well but have not tried what you are attempting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 03:28 PM
03-31-2004 03:28 PM
Re: how to include libgcc.a in the makefile
Yes,add it to the variable LD_LIBRARY_PATH
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP