Commit Graph

177 Commits

Author SHA1 Message Date
sturm
3e2c7f0404 add some code to help find circular dependencies 2009-05-09 07:36:17 +00:00
steven
5793039c06 accept multiple forms of --version-info, adding default values where none
are specified (gnu behavior). this fixes math/kst
2009-02-16 22:04:28 +00:00
steven
238f39a692 deal with multiple linker options passed via one -Wl flag
fixes gnome/dasher
2009-02-16 21:22:56 +00:00
steven
14807835af rework logic around library linking, adding so called convenience libraries.
fixes build of a few ports, and doesn't seem to break anything else.
2009-02-16 20:02:42 +00:00
steven
b141d06793 parse linkargs after constructing object lists 2008-11-23 09:53:56 +00:00
steven
ae388464a0 small tweak 2008-11-23 08:47:05 +00:00
steven
fe4a14cc4a somewhat simpler 2008-11-22 10:04:19 +00:00
steven
7f7ea8f9cb move code a little bit 2008-11-22 09:58:03 +00:00
steven
1dcee94da4 move library linking to LaFile class 2008-11-19 21:11:17 +00:00
steven
2f6600d62f some trivial cleanup 2008-11-18 22:31:11 +00:00
steven
705208ac57 separate linking of executables into its own class 2008-11-18 22:16:44 +00:00
steven
0d384fb780 - use exec during installation as well
- cleaner way to filter -s out of install options
2008-11-16 21:58:17 +00:00
steven
da62d86b3c make the compiler program a list; fixes a few ports 2008-11-14 22:50:58 +00:00
steven
ca2029501c use reference instead of hash 2008-11-11 11:00:29 +00:00
steven
a6d6aed06a separate compile code into its own method 2008-11-11 10:46:14 +00:00
steven
176cb58ff7 don't use the shell, except for install mode (needs more tweaking)
use references in a few more places
check whether reference is defined before attempting to use it
2008-11-11 09:54:51 +00:00
steven
5538e2a4ec change logic deciding whether to add a version; should fix a few ports 2008-11-10 15:52:30 +00:00
steven
f973bf3a82 only use reverse_zap_duplicates_ref and get rid of the array version
ok espie
2008-11-10 15:01:54 +00:00
sthen
7ca677bed1 remove sh from no_shared_archs, ok steven@ 2008-11-10 08:46:21 +00:00
steven
f2bea3b294 reintroduce (incomplete) support for --config, needed by some ports 2008-11-09 12:37:35 +00:00
steven
11da5ccdac more use of references
go for it espie@
2008-11-09 12:29:54 +00:00
steven
68831eca93 - use reference in process_deplibs and a few other places
- avoid split/join ' ' dance
- prettier debug output

ok espie@
2008-11-09 10:30:54 +00:00
espie
15242ec79f oops2, committed stuff that's not ready yet along 2008-11-08 09:43:43 +00:00
espie
10a17a5002 oops 2008-11-08 09:41:25 +00:00
espie
e2c1942470 finish switching parse_linkargs and resolve_la to lists,
stop the join ' ', split /\s+/ dance.

use debug(&) to avoid computing debug messages when not needed.
(and cleanup some old variables that no longer exist)

okay steven@
2008-11-07 20:22:39 +00:00
espie
7408363065 tweak a few things:
- cache more stuff to avoid calling internal_resolve_la
- add a tracing facility
- start cleaning up more stuff.

okay steven@
2008-11-03 21:11:58 +00:00
espie
c17c566a6b Exec class to run things.
LaLoFile class to read/write la and lo files.
2008-11-01 13:06:16 +00:00
espie
131635f281 simplify parse_file a bit, okay steven@ 2008-10-31 10:28:05 +00:00
steven
bac6de4a16 add support for -export-symbols-regex, seems to work 2008-10-30 23:53:28 +00:00
steven
4cfa4bc828 support -export-symbols 2008-10-30 22:22:34 +00:00
steven
cdef84d3bb same search path debug info for find_la 2008-10-30 19:13:11 +00:00
steven
bfe5af2eef in find_lib, setup search path before starting search instead of modifying
some of the paths as we go; print search path in debug mode
rename a few variables for clarity
remove a spurious print statement

looks good to bernd
2008-10-30 19:02:19 +00:00
steven
e9fc27ce46 deal with multiple -rpath arguments; add the paths correctly to the run-time
path when linking an executable.

looks good to bernd@
2008-10-30 18:15:06 +00:00
steven
1440297f2c revert part of r1.35 which reversed deplibs, seems to cause very long loops 2008-10-30 15:03:07 +00:00
steven
2105813ddd don't add -pthread flag over and over again 2008-10-30 10:46:53 +00:00
steven
c2b79288a8 support -export-dynamic
from jakemsr@ long ago
2008-10-30 10:39:38 +00:00
steven
6a3d7e330e zap some rather useless features
bernd agrees
2008-10-29 23:13:22 +00:00
steven
cbf11d3bf6 convert some more lines to use the debug function 2008-10-29 23:09:07 +00:00
bernd
03982df912 foo.la files which have libdir set are going to be installed and should
end up in dependency_libs. ok steven
2008-10-29 16:16:49 +00:00
steven
8563b27b22 build static library if -rpath is not set
only fill in libdir if -rpath is set
2008-10-29 16:10:53 +00:00
steven
0d31269c32 error out if we cannot find a library file in the library hash
restrict addition of a flag to library link mode
2008-10-29 15:28:22 +00:00
steven
4ba440c926 use a subroutine for printing debug info
print some more debug info while here
2008-10-29 12:13:01 +00:00
steven
02481d9d12 revert a fix from bernd, it breaks other stuff
build deplibs the reverse way, seems to improve the ordering a bit
2008-10-29 10:09:33 +00:00
bernd
70853d5e36 Fix globbing to find libraries. ok steven 2008-10-28 17:16:31 +00:00
bernd
c884da49b1 Unbreak dependency_libs generation for .la files. ok steven 2008-10-28 17:15:00 +00:00
bernd
f2d591ad64 Print a warning if a lib isn't found in %libs so we don't try to use
an uninitialized variable.

steven agrees
2008-10-28 11:31:48 +00:00
bernd
61891ab14d parse_file now caches the file contents in %file_cache so we don't
have to to IO on the same files again and again.

don't skip any .la files in resolve_la yet to not break the order
(fixes misc/amanda)

added some debugging prints

ok steven
2008-10-28 11:16:27 +00:00
steven
401035aa94 find -lfoo libraries also inside ./.libs directory 2008-10-28 10:01:13 +00:00
steven
bec920d5eb try to use pic objects if no non-pic objects can be found
throw some warnings
2008-10-28 10:00:22 +00:00
steven
0dba86f80d use -whole-archive linker flag when linking a shared library with static
libraries
2008-10-28 09:58:55 +00:00