summaryrefslogtreecommitdiffstats
path: root/usr.bin/libtool/LT (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix an off-by-one when -lestdc++ is passed before -lstdc++jca2020-02-271-2/+2
| | | | | Fixes geo/spatialite/gis on gcc archs. Report and tests by kmos@, different fix from cwen@, ok zhuk@ espie@ kmos@
* ensure dependency_libs and libdir are defined after parsing .la file.semarie2019-09-281-1/+13
| | | | | | | | | | | | problem raised with librsvg which use libtool-rust, and our libtool just die if deplib_list is undef. tested in bulk by sthen@ and naddy@ "modern" perl practice/syntax suggested by espie@ makes sense sthen@ ok espie@
* teach libtool to build shared libraries with a sonamesemarie2018-12-111-1/+2
| | | | ok naddy@
* lld generates DT_RUNPATH elements instead of the older DT_RPATH.naddy2018-10-281-5/+5
| | | | | Handle both. From semarie@, tweaked by espie@ ok phessler@ espie@
* Handle fork() errors. The Perl fork() wrapper returns undef rathernaddy2018-08-261-2/+2
| | | | than -1 on error. ok jca@
* have libtool do libtool work, mainly work around exec limitations byespie2018-04-071-1/+13
| | | | | | using ar @file construct. okay aja@
* Recognize '-weak' in our libtool, helps at least xine-lib to build.zhuk2017-07-231-2/+4
| | | | okay aja@
* Fix SPLICE in LT::UList, allowing more ports to build.zhuk2017-07-231-57/+83
| | | | Initial prodding and bulk builds by aja@.
* Make libtool handle --tag=... inside command line.zhuk2017-05-271-1/+2
| | | | | | Unbreaks (and changes PLIST) multimedia/lives under Clang, and maybe others. okay espie@
* Have libtool ignore 'static-libtool-libs'. Previously it was unsupported andsthen2017-04-251-3/+5
| | | | | passed straight through to the compiler, which gcc doesn't mind, but clang is unhappy about. Suggestion/ok aja@
* Teach libtool how to deal with both -lestdc++ and -lstdc++ in command line.zhuk2016-12-252-4/+43
| | | | | | | | | | This helps to avoid linking both libraries, making -lestdc++ the only one there. The concrete example would be print/poppler port after Qt5 update, which is coming right now. This hack would go away together with libestdc++... Kind support on all the way by aja@, thanks!
* Also ignore --no-undefined (we already ignore -no-undefined) which isajacoutot2016-11-031-1/+2
| | | | | | starting to show up more and more. ok jasper@
* Ignore the -bindir option, meaningless on OpenBSD.jca2016-08-021-2/+3
| | | | | | | | | Lack of -bindir handling is not a problem right now because -bindir is passed to cc(1) which ignores it, and because read(2) on /usr/local/bin returns 0 right now, so ld(1) copes with it. But there are plans to make read(2) fail with EISDIR. Input from and bulk builds thanks to ajacoutot@, ok ajacoutot@ espie@
* typo: wil -> willajacoutot2016-04-271-2/+2
|
* Fix a couple of libtool issues:ajacoutot2015-09-212-2/+42
| | | | | | | | | | | | | * when looking for a library, also look for an unversioned solib before falling back to using the static one (which may not even exist) * when a library has no libtool file (.la) with a proper dependency_libs entry, libtool(1) falls back to using objdump to determine the depencencies; however this works only if dependencies are in standard search paths; fix it by looking at the RPATH entry in objdump then add non standard dirs to search_dirs and -rpath inputs from and ok espie@, ok jasper@
* recognize install-wrapper as a valid install programespie2014-09-052-4/+4
|
* Fix library search order in our libtool.zhuk2014-04-272-23/+55
| | | | | | | | | | 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).
* Style improvement based on espie@'s feedback: provide and usezhuk2014-04-204-29/+32
| | | | | | | 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
* Whitespace tweaks before further tweaks; no objections from ajacoutot@.zhuk2014-04-165-22/+22
|
* Make directory ordering in our libtool stable. Fixes quiet a few issueszhuk2014-04-168-94/+259
| | | | | | | | ajacoutot@, me and probably others were seeing. No fallout in bulk build. Input from espie@ and ajacoutot@. Prodding by ajacoutot@ Bulk test by jasper@
* Match GNU libtool and properly add -rpath to the linker when linkingajacoutot2014-03-311-1/+20
| | | | | | | | 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@
* Remove lexical $_ from libtool in preparation for perl 5.18afresh12014-03-195-109/+108
| | | | OK and additional changes from espie@
* Also accept "install-check" as an install script. This part willajacoutot2014-03-062-4/+4
| | | | | | probably be reworked and simplified in the future anyway... ok espie@
* Honor -Wc and -Xcompiler in link mode like GNU does. OK espie@millert2013-01-101-1/+5
|
* *really* filter symbols on elf systems: introduce a new "export_symbols"espie2012-11-093-23/+52
| | | | | | | | | | | | | | | | | 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.
* fix get_symbollist: output completely empty file if no symbol.espie2012-11-091-2/+3
| | | | output slightly more debug info
* a few libtool users are bogus, they confuse --export-symbols with theespie2012-08-271-6/+8
| | | | | | | | | 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).
* vax does not get -rpath-link, but it also does not really need it.espie2012-08-271-1/+2
| | | | | | | 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).
* zap nonsense codeespie2012-08-041-4/+1
|
* styleespie2012-07-181-10/+10
|
* tidbitespie2012-07-131-10/+8
|
* minor cleanupespie2012-07-132-9/+8
|
* move stuff around some more, do not load link parts unless we are actuallyespie2012-07-137-380/+406
| | | | | | | | | linking. (and always load basic linker class when we're actually linking) Start making a proper "library stash class".
* fix shared library lookup...espie2012-07-131-27/+44
|
* common code for deducing libraries.espie2012-07-123-19/+22
| | | | Still fucks up order somehow...
* okay, now the parser module is totally part of Mode/Link.pm, no reasonespie2012-07-122-320/+297
| | | | for a separate file
* perlify: $_ is subjectespie2012-07-121-50/+50
|
* match what stupid gnu libtool is doing, namely -o is not a short optionespie2012-07-122-4/+4
|
* allow "long options" to be one letter, enforce with !espie2012-07-122-3/+8
| | | | | | | make sure -L dir will error out. "cute" gnu libtool: -x c will vanish from linker arguments, but only in library linking-mode.
* laterespie2012-07-121-2/+2
|
* match gnu-libtool: error out if -L dir is used instead of -Ldirespie2012-07-121-1/+2
|
* deal with -pthread as a "once on" option.espie2012-07-123-11/+9
|
* unwanted duplicateespie2012-07-121-2/+1
|
* simplify yet a bit moreespie2012-07-124-36/+34
|
* move a bit of stuff aroundespie2012-07-121-9/+8
|
* duh, idiotespie2012-07-111-4/+4
|
* must check release is defined, it CAN be 0.espie2012-07-111-2/+2
|
* try to make code vaguely saneespie2012-07-112-16/+16
|
* simplify cache code a bitespie2012-07-111-38/+40
|
* no need to trace libtool when executing an external command fails.espie2012-07-111-2/+3
| | | | otherwise I get bogus bug-reports from nitwits