This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ld options file question
- From: Ariel Burton <ariel dot burton at roguewave dot com>
- To: binutils at sourceware dot org
- Date: Fri, 31 Aug 2012 16:19:38 -0400
- Subject: ld options file question
Dear all,
ld's options file command line switch (@) is very useful.
One use-csae is that one can place a set of libraries in a
directory. One could then put the -l directives in an option
file. The problem I've had is what to do with the -L directive.
I've had to put it on the command line, which means that the
path to the directory holding the options file and the libraries
has to be given twice: once for the @ option, and once in the
-L directive, that is something like:
@<dir>/options.ld -L<dir>
The -L directive could go in the options file, but then
the options file needs to be modified if the location
of the directory changes.
I would like to be able to write something like this in the
options file:
-L$ORIGIN
-lone
-ltwo
.
.
-lseventeen
where $ORIGIN is the directory in which the options file lives.
Is this, or something similar, possible?
Thanks,
Ariel Burton