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 06-13-2008, 07:22 PM   #1
mkrems
Member
 
Registered: Jan 2008
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 15
Compiler Flags


A code a colleague of mine wrote contains the following compiler flags. I am particularly interested in what -Wl, rpath means.


-L/opt/acml2.5.0/gnu32/lib -Wl,-rpath,/opt/gcc-4.2.0/lib /usr/lib/libg2c.so.0

THanks!
 
Old 06-13-2008, 07:55 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
You could probably have simply done what I did for you:
Code:
man gcc
ma ld
-Wl,option : Pass option as an option to the linker
-rpath : Add a directory to the runtime library search path
--- rod.
 
  


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
compiler flags mkrems Linux - Software 1 04-22-2008 01:53 AM
g++ compiler error on iostream method .flags() sadarax Programming 2 04-12-2007 06:20 PM
How do you set compiler flags in SuSE? Thaidog SUSE / openSUSE 0 12-26-2006 11:04 PM
How to rebuild glibc with compiler flags designed for my system davidas Debian 1 04-20-2004 12:12 AM

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

All times are GMT -5. The time now is 01:31 PM.

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