login about faq

OpenCSW GCC uses the Solaris linker by default. How can I tell it to use a different linker, for example the GNU linker?

asked May 06 '12 at 15:09

automaciej's gravatar image

automaciej ♦♦
96252936


There is a blog post explaining how to do it.

GCC's linker setting is set at build time and you cannot change it later. The OpenCSW GCC is built to use the Solaris linker. However, the Solaris linker can be told to not link, but call a different linker instead. To do this, you need to set the LD_ALTEXEC environment variable to e.g. /opt/csw/bin/gld. GCC will still be calling /usr/ccs/bin/ld, but /usr/ccs/bin/ld will delegate the work to /opt/csw/bin/gld.

link
This answer is marked "community wiki".

answered May 06 '12 at 15:12

automaciej's gravatar image

automaciej ♦♦
96252936

edited May 06 '12 at 15:14

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×1
×1

Asked: May 06 '12 at 15:09

Seen: 921 times

Last updated: May 06 '12 at 15:14

powered by OSQA