diff options
author | peter <peter@FreeBSD.org> | 2013-08-13 07:15:01 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2013-08-13 07:15:01 +0000 |
commit | 995e1f0063b0515ed5821ebab3aff02dbbe44719 (patch) | |
tree | 9bba3bf02dbd5d242b50c29cd7221d5ae286e560 /share | |
parent | d9e76bbffc59d724ea0ffe9896012f4ac0859bc7 (diff) | |
download | FreeBSD-src-995e1f0063b0515ed5821ebab3aff02dbbe44719.zip FreeBSD-src-995e1f0063b0515ed5821ebab3aff02dbbe44719.tar.gz |
The iconv in libc did two things - implement the standard APIs, the GNU
extensions and also tried to be link time compatible with ports libiconv.
This splits that functionality and enables the parts that shouldn't
interfere with the port by default.
WITH_ICONV (now on by default) - adds iconv.h, iconv_open(3) etc.
WITH_LIBICONV_COMPAT (off by default) adds the libiconv_open etc API, linker
symbols and even a stub libiconv.so.3 that are good enough to be able
to 'pkg delete -f libiconv' on a running system and reasonably expect it
to work.
I have tortured many machines over the last few days to try and reduce
the possibilities of foot-shooting as much as I can. I've successfully
recompiled to enable and disable the libiconv_compat modes, ports that use
libiconv alongside system iconv etc. If you don't enable the
WITH_LIBICONV_COMPAT switch, they don't share symbol space.
This is an extension of behavior on other system. iconv(3) is a standard
libc interface and libiconv port expects to be able to run alongside it on
systems that have it.
Bumped osreldate.
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.own.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 08bcca1..e06184d 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -292,6 +292,7 @@ __DEFAULT_YES_OPTIONS = \ GPIO \ GROFF \ HTML \ + ICONV \ INET \ INET6 \ INFO \ @@ -377,7 +378,7 @@ __DEFAULT_NO_OPTIONS = \ GNU_PATCH \ GPL_DTC \ HESIOD \ - ICONV \ + LIBICONV_COMPAT \ INSTALL_AS_USER \ LDNS_UTILS \ NMTREE \ @@ -484,6 +485,10 @@ MK_BIND_NAMED:= no MK_BIND_UTILS:= no .endif +.if ${MK_ICONV} == "no" +MK_LIBICONV_COMPAT:= no +.endif + .if ${MK_LDNS} == "no" MK_LDNS_UTILS:= no .endif |