Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 06-13-2008, 07:22 PM   #1
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/

Old 06-13-2008, 07:55 PM   #2
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:
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.


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:40 AM.

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