espie
cb5a10072f
off-by-1 in splice.
...
more intuitive: copy the list except for dropped elements
2010-07-06 14:50:53 +00:00
espie
d24243d7ec
debug complains
2010-07-06 14:29:15 +00:00
steven
b26ff5b05d
put this in else block
2010-06-28 19:17:27 +00:00
steven
31dadc00df
store full path to another .la file that we find during processing
...
of a -l argument as well.
fixes build of productivity/qhacc
2010-06-27 14:29:54 +00:00
steven
9fdcfd5f6a
basic dependency drop if library isn't found (only when linking a library)
...
makes security/pcsc-lite build
2010-06-25 21:39:35 +00:00
steven
530859e74d
Library->find wants to know where it is called from (LaFile or Program)
2010-06-25 20:59:33 +00:00
steven
f99ed6df6d
put string into a variable here
2010-06-25 20:29:11 +00:00
steven
5351dc846b
always search for the library file when walking the final lib list;
...
also delete the fullpath if no library file is found.
maybe slightly less efficient but should be safer
2010-06-25 20:03:54 +00:00
steven
fb4e10a8f7
no need to add to deplibs recursively here
2010-06-25 05:21:35 +00:00
steven
bbdbbc1578
when linking executables, add non standard library paths with -rpath
...
to do this we collect the libdirs we encounter when resolving .la files
problem noticed by landry@ when trying to build kazehakase
2010-06-19 09:41:07 +00:00
steven
8eb73a1f63
ltprog should not eat .la file arguments.
...
quick workaround, need to sanitize this later
this makes graphics/gegl work
2010-06-12 16:35:15 +00:00
steven
d5f1dfe7fa
don't try to be too smart and just install the .la file always
2010-06-12 13:58:27 +00:00
steven
c2c0e34851
be silent when mode=execute
...
this fixes net/xchat
2010-04-26 17:49:00 +00:00
steven
218487feca
spacing
2009-11-15 22:05:36 +00:00
steven
d343c92dff
look for .la file associated with -lfoo argument in the cwd too
...
seems to fix a handful of ports
2009-11-15 21:51:59 +00:00
steven
685bd523ac
cleanup unused variable
2009-10-18 08:32:19 +00:00
steven
16d0c32f3c
separate lists of static and shared libraries
...
this makes xenocara build.
2009-10-17 14:40:22 +00:00
steven
84737a0d1c
clean up a bit, and save some time
2009-10-15 15:20:34 +00:00
steven
de328a6e74
better regex
2009-10-15 13:48:11 +00:00
steven
3628fb6ff2
try to cope with people passing /path/libfoo.so.X.Y instead of -lfoo
...
if a static library has been found, don't search for it again.
2009-10-15 13:46:23 +00:00
steven
3197dd1add
no need for fiddling with deplibs again here
2009-10-15 11:26:08 +00:00
steven
90acfab4e5
revert some of the previous; we need this to deal with convenience libs
2009-10-15 11:16:10 +00:00
steven
d514f1eb1d
remove unneeded extract_archive function
2009-10-15 09:39:45 +00:00
steven
7b6089698d
cleanup; this seems to work better
2009-10-14 22:03:16 +00:00
steven
1adbca4d86
shut up if not in debug mode
2009-10-14 18:22:03 +00:00
steven
24132ef048
use find method here as well, as the object data might not have been filled
2009-10-14 16:03:02 +00:00
steven
869d85c921
make guess_implicit_mode work again
2009-10-14 14:28:22 +00:00
steven
dd74eb33f1
register directory where static lib can be found
...
add missing newline
2009-10-14 14:14:21 +00:00
steven
cb183eb8c6
run find unconditionally
2009-10-14 14:05:33 +00:00
steven
fa7822ef2f
sigh, install programs do not always take options
2009-10-14 13:42:41 +00:00
steven
faaa9351fc
if (defined $a) instead of (if $a) for the -release option, as it may be 0
2009-10-14 12:28:44 +00:00
steven
38fc564f05
move some library finding code out of the parser
...
store the .la file path in the library object for later use
fix a bug where we lost some of the command line arguments
this makes more stuff build again and improves static linking
2009-10-14 11:31:50 +00:00
steven
e6877d2f2a
read architecture from the perl configuration
2009-10-14 09:06:17 +00:00
steven
d319580241
some small fixes after previous changes
2009-10-13 23:26:41 +00:00
steven
1499055d06
move find_la subroutine into LaFile package
2009-10-13 21:19:15 +00:00
steven
cfe5f8d02a
make substitution code a bit shorter
2009-10-13 20:56:45 +00:00
steven
ec6069f4f3
- write SHARED_LIBS_LOG file
...
- fix stringize to return 0 instead of empty string if the value is 0
2009-10-13 18:22:57 +00:00
steven
fddecfb227
start at putting library info into an object
2009-10-13 17:11:21 +00:00
steven
553d8c3311
this should work better
2009-10-13 14:23:12 +00:00
steven
1029d10105
restrict scope of a few variables; initialize them in link mode only
2009-10-13 13:55:12 +00:00
steven
5f959feb9a
move all the parsing subroutines from main into a parser class
...
much more moving around is needed
2009-10-13 13:30:31 +00:00
steven
028808fd21
remove another argument here
2009-10-12 19:02:14 +00:00
steven
4c6fbb3538
remove argument when not necessary
2009-10-12 18:31:37 +00:00
steven
fdbf9000c1
move a few lines and add missing argument
2009-10-12 18:14:55 +00:00
steven
f2f622fbaf
more generic way to deal with multiple-argument commands
...
(compiler, linker, install program, etc)
2009-10-12 09:58:22 +00:00
steven
866707f683
avoid undef as reference
2009-10-11 20:50:33 +00:00
steven
16fa453f51
sigh, don't use glob here
2009-10-11 18:58:59 +00:00
steven
5e4c5f1c28
oops
2009-10-11 18:40:03 +00:00
steven
699cd8382e
move some info related to executable into the object
2009-10-11 14:21:56 +00:00
steven
ee45027ef6
allow to link executables statically as well
2009-10-10 09:50:11 +00:00