Commit Graph

34 Commits

Author SHA1 Message Date
jasper
9f406a8adc - remove bogus XXX 2011-11-16 10:56:57 +00:00
jasper
3dcf344837 Make output slightly more similar like gnu libtool in various
modes. Simplify Exec->command() a bit too while here as suggested by espie@

ok espie@
2011-11-14 22:12:08 +00:00
sthen
068886bea6 treat -all-static like -static; fixes sysutils/nut CGI scripts which
should be linked statically as reported by David Talkington. Tested with
all ports showing in bulk build logs as using -all-static.

"that looks ok for our needs" steven@
2011-05-16 20:09:54 +00:00
jasper
872d49a562 - Use full path to ldconfig
- Adjust error message
      ok steven@
2011-03-02 08:06:33 +00:00
espie
2d255d213d small hack to make these work even if PORTSDIR is not set and non-standard,
since the lib are supposed to be in the same relative location.
2010-12-29 12:28:23 +00:00
espie
b87d7dd53f put stuff in separate modules 2010-12-07 08:46:28 +00:00
steven
8f06d3f7fd make die messages a bit more consistent 2010-11-01 13:40:36 +00:00
steven
63596c6ac2 give Program its own install sub as well 2010-11-01 13:26:41 +00:00
steven
72dd1c9832 zap unused variable 2010-11-01 13:05:57 +00:00
steven
89d04d4736 simplify sequence of events a bit in the install subroutine 2010-11-01 13:05:13 +00:00
steven
c5236210fe factor code to install .la file and associated files into its own sub 2010-11-01 12:48:15 +00:00
steven
f7e4458115 move mkdir out of if block so we avoid an error when it tries to write an
objectlist in there
2010-10-28 23:50:15 +00:00
steven
2e37db56d1 check that we really have pic objects to pass, otherwise fall back to nonpic.
this is a quick fix, to be done a bit cleaner later.
2010-10-28 23:48:40 +00:00
steven
e1202b625d undo revert 2010-10-28 23:45:59 +00:00
jasper
df430ae277 - revert libtool to -r1.16, as -r1.17 breaks at least dynamips, lftp and
silc-server.

found by landry@ and myself the hardway

ok sthen@ espie@
2010-10-28 22:19:03 +00:00
steven
233c853561 strip static libraries with --strip-debug
seems to fix databased/db library
2010-10-28 09:08:27 +00:00
steven
d067b2c283 some cleanup 2010-10-27 23:42:49 +00:00
steven
6de5af54a3 behave more like gnu by not using pic objects for a static library. 2010-10-27 23:41:27 +00:00
steven
08de79dc77 make ltprog a list of elements without whitespace.
this should prevent exec errors later on.

fixes telepathy-glib, noticed by landry@
2010-10-27 17:37:55 +00:00
steven
dda823ac11 create an executable wrapper only if we encounter not-installed shared libs
(still based on .la file content)

this fixes at least fix www/wml and maybe some others
2010-10-27 12:43:41 +00:00
steven
e0fd79dc30 this can never have worked for real...
change .a -> .la
in case we ever run into this particular case
2010-10-27 11:03:17 +00:00
steven
27f392bd95 do not pass libtool's -static option to the linker
instead do what it is supposed to do: not dynamically linking with
not-installed libtool libraries

openldap linking incorrectness pointed out by pea@

this might fix some other stuff as well
2010-10-27 09:05:30 +00:00
steven
354a48eda4 do not write modules in shared_libs.log
noticed by ajacoutot@
2010-09-28 18:52:36 +00:00
steven
1e8a0905a2 - when writing a program wrapper, use the correct path
a/path/to/.libs/foo instead of .libs/a/path/to/foo
- make sure the symlinks pointing to the library are also in this path

problem spotted by naddy in net/gnet regression tests
2010-09-28 18:42:17 +00:00
steven
9098b5f565 drop relative -L paths from dependency_libs before installing the .la file. 2010-09-25 17:14:48 +00:00
steven
3ae0723a0e drop libraries from deplibs which we are not going to install.
this should fix exiv2.
2010-09-25 16:58:52 +00:00
steven
44e0bdbcd7 also add -lfoo arguments to deplibs if there is no key yet for this library,
because the key may be set in a recursion step, but we only add to deplibs
at level 0.
this seems to produce more correct deplibs.
first step to fix kde/bindings.
2010-09-25 15:20:04 +00:00
steven
9b80461fa6 put .o files on command line in objects array as well.
this fixes errors in gst-plugins-bad.

while here, check the object list and bail out if it's empty
2010-09-25 13:32:06 +00:00
steven
d9fe54e890 don't use empty valued libdir here 2010-09-24 21:07:30 +00:00
steven
205a6c48cc move test to discover shared libs in .la files to pass 2 because then we
actually have all the .la files we need (especially so if users insist on
using -lfoo instead of foo.la).
this makes it behave better for the creation of executable wrappers.
should fix sysutils/bacula.
2010-09-24 20:57:54 +00:00
steven
8618d9ee5f when a lib has multiple different library names, populate the .libs dir with
symlinks to all of them.

this fixes kde/multimedia, which builds a libmpeg-0.3.0.so (using -release),
also known as libmpeg.so, and then links something with -lmpeg ...
(before this commit, we only had a symlink to the former)
it should really just use libmpeg.la instead, but let's have libtool handle
such attempts anyway.
might fix other stuff i'm not yet aware of, too.
2010-09-19 17:30:52 +00:00
steven
525b6fd50d when we had for example -lX11 -L/usr/X11R6/lib,
we could not find /usr/X11R6/lib/libX11.la

therefore, parse -L arguments before everything else so we know in which
directories to search libraries.

fixes libcaca, and possibly others
2010-09-18 16:22:26 +00:00
jasper
c055be22f3 - strip leading 'lib' when we write the library name to the shared_libs.log
file.

ok steven@
2010-08-26 17:48:27 +00:00
espie
77858d70dc and libtool 2010-08-20 15:09:54 +00:00