LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-13-2007, 09:58 AM   #1
stupendus
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Rep: Reputation: 0
gcc option -Wl,-rpath : what does it mean?


Hi,
I'm trying to debug a package that contains several directories and programs.

I found very often something like this:

-L$(LIBDIR) -lDAQ -Wl,-rpath,$(DAQHOME)/lib

I've searched for -Wl,-rpath in gcc manual but I didn't find anything...

Is there anybody having an idea of what -Wl,-rpath means?

Many thanks in advance!

Regards,
Marco
 
Old 08-13-2007, 10:13 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Right from the man page of gcc
Quote:
-Wl,option Pass option as an option to the linker. If option contains commas, it is split into multiple options at the commas.
This tell the compiler to treat option(s) after "-Wl," as option(s) to the linker. If you look at man ld, you will find the meaning of option -rpath. Cheers!
 
Old 08-13-2007, 10:21 AM   #3
stupendus
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

Quote:
Originally Posted by colucix View Post
Right from the man page of gcc

This tell the compiler to treat option(s) after "-Wl," as option(s) to the linker. If you look at man ld, you will find the meaning of option -rpath. Cheers!
The part I was looking for was '-rpath' indeed... I was thinking it was a gcc option too... but now I see that linker means ld... Many many thanks!!!

Regards,
Marco
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc/g++ option nuxrl Programming 1 11-30-2006 01:36 PM
about -00 option of gcc George2 Programming 3 08-29-2006 03:28 PM
gcc -I option vkmgeek Programming 18 05-16-2006 06:27 PM
what does the option -s of gcc mean ? hongxing Linux - Software 3 11-28-2005 08:12 PM
gcc option -E use. niverson Programming 2 10-11-2004 04:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration