summaryrefslogtreecommitdiff
path: root/usr.bin/libtool
AgeCommit message (Collapse)Author
2014-09-05recognize install-wrapper as a valid install programMarc Espie
2014-04-27Fix library search order in our libtool.Vadim Zhukov
Before, libtool first searched all directories for .la files, and if search failed, switched to actual libraries (.so/.a). But the correct way is to check each directory first for .la, then for .so/.a. The problem was reported by ajacoutot@ who verified that the patch fixes his case and okay'ed the initial diff. And jasper@'s bulk uncovered a bug which is fixed now (verified by another bulk).
2014-04-20Style improvement based on espie@'s feedback: provide and useVadim Zhukov
LT::UList->new() instead of calling tie() manually. As a bonus, few extra lines in actual code go away. okay espie@ who still thinks that I test things _before_ commit
2014-04-16Whitespace tweaks before further tweaks; no objections from ajacoutot@.Vadim Zhukov
2014-04-16Make directory ordering in our libtool stable. Fixes quiet a few issuesVadim Zhukov
ajacoutot@, me and probably others were seeing. No fallout in bulk build. Input from espie@ and ajacoutot@. Prodding by ajacoutot@ Bulk test by jasper@
2014-03-31Match GNU libtool and properly add -rpath to the linker when linkingAntoine Jacoutot
libraries. Until now we only did that for bin programs, but some libs can also depend on other libs which aren't in the standard search path. passed a full ports bulk (thanks jasper@) ok jasper@ sthen@
2014-03-19Remove lexical $_ from libtool in preparation for perl 5.18afresh1
OK and additional changes from espie@
2014-03-06Also accept "install-check" as an install script. This part willAntoine Jacoutot
probably be reworked and simplified in the future anyway... ok espie@
2013-02-02m68k has switched to ELF.Brad Smith
ok miod@
2013-02-01m88k has switched to ELF and has shared libs.Brad Smith
ok miod@
2013-01-10Honor -Wc and -Xcompiler in link mode like GNU does. OK espie@Todd C. Miller
2012-11-09*really* filter symbols on elf systems: introduce a new "export_symbols"Marc Espie
method that does all the work to produce the right options (one option, so that the *.ver file contains all useful information). Have to cater to regexp: in particular, make sure to nm on every object and static library we might need, so we don't lose anything. Allow for the result to be empty (since some projects use -export-symbols-regex everywhere, *including on binaries with empty symbol lists*) should now be clean portswise. As usual, a non working option means lots of weird fuck-ups to fix first... thx to millert@ for the hint, aja,jasper,landry for comments and testing.
2012-11-09fix get_symbollist: output completely empty file if no symbol.Marc Espie
output slightly more debug info
2012-10-27mark elf architectures as wellMarc Espie
2012-08-27a few libtool users are bogus, they confuse --export-symbols with theMarc Espie
real option -export-symbols. Instead of blindly passing that one to the linker, error out beforehand, so that people know the problem IS libtool usage and not our program. (as exemplified by Todd Fries on ldns).
2012-08-27vax does not get -rpath-link, but it also does not really need it.Marc Espie
as found out by sebastia@ and used during 5.2 vax package build... no ill side-effects so far, so do this as a stopgap measure (matthieu@ reports that our libtool is not yet very good for static-only arches).
2012-08-04zap nonsense codeMarc Espie
2012-07-18styleMarc Espie
2012-07-13tidbitMarc Espie
2012-07-13minor cleanupMarc Espie
2012-07-13move stuff around some more, do not load link parts unless we are actuallyMarc Espie
linking. (and always load basic linker class when we're actually linking) Start making a proper "library stash class".
2012-07-13fix shared library lookup...Marc Espie
2012-07-12common code for deducing libraries.Marc Espie
Still fucks up order somehow...
2012-07-12okay, now the parser module is totally part of Mode/Link.pm, no reasonMarc Espie
for a separate file
2012-07-12perlify: $_ is subjectMarc Espie
2012-07-12match what stupid gnu libtool is doing, namely -o is not a short optionMarc Espie
2012-07-12allow "long options" to be one letter, enforce with !Marc Espie
make sure -L dir will error out. "cute" gnu libtool: -x c will vanish from linker arguments, but only in library linking-mode.
2012-07-12laterMarc Espie
2012-07-12match gnu-libtool: error out if -L dir is used instead of -LdirMarc Espie
2012-07-12deal with -pthread as a "once on" option.Marc Espie
2012-07-12unwanted duplicateMarc Espie
2012-07-12simplify yet a bit moreMarc Espie
2012-07-12move a bit of stuff aroundMarc Espie
2012-07-11duh, idiotMarc Espie
2012-07-11must check release is defined, it CAN be 0.Marc Espie
2012-07-11try to make code vaguely saneMarc Espie
2012-07-11simplify cache code a bitMarc Espie
2012-07-11no need to trace libtool when executing an external command fails.Marc Espie
otherwise I get bogus bug-reports from nitwits
2012-07-11thinkoMarc Espie
2012-07-11fix bug for real. Turns out some libraries (xcb...) have NEEDED that goMarc Espie
to standard ldconfig search dirs... Of course, ld complains because it doesn't have them in its standard search dir. BUT there's an option -rpath-link designed just for that (look up needed objects during compile and trust the end result to find them). So use that for ldconfig directories... so that xcb can link without needing to go have a look at the NEEDED list, but without encoding standard rpaths in the resulting binary... Also, put all the junk that needs -Wl together so we can add one single -Wl,-rpath,foo,-rpath-link,foo2 thingy...
2012-07-11do the ldconfig search dir properlyMarc Espie
2012-07-11nit: bless object early so we can use methods on itMarc Espie
2012-07-10quick fix ?Marc Espie
2012-07-10unconfuse myself.Marc Espie
having two methods that do completely different things with the same name (!) is evil...
2012-07-10ouch, Rresolved and libsearchdirs no longer live in main, so make themMarc Espie
part of $gp as they should be... Oh, and create an actual linker object for later.
2012-07-10move some shit around to (more or less) where it belongsMarc Espie
2012-07-10bye-bye Getopt::LongMarc Espie
2012-07-10clean-up shit, pull some of LT::Util into ltconfig objectMarc Espie
make that a somewhat more "real" object...
2012-07-10full support for -static -shared -prefer-pic -prefer-non-pic -fpie*Marc Espie
in --mode=compile
2012-07-10pass the option string along as a 4th parameter, in cases canonical isMarc Espie
not all that matters (e.g., -fpie and friends)