Ticket #6332 (closed enhancement: fixed)

Bug contains 2 commit(s) | SVN Diffs for #6332

 

Opened 2 years ago

Last modified 2 days ago

user suggests more common naming convention for static libraries on UNIX

Reported by: ejb@... Assigned to: jvu
Priority: minor Milestone: 4.4
Component: config_build Version: 3.8.1
Keywords: Cc:
Load: Xref:
Java Version: Operating System:
Project (C/J): all Weeks: 1
Review: srl

Description

When ICU is built on a UNIX platform with --enable-shared and --enable static, the static libraries have an "s" in front of their names (-lsicuuc vs. -licuuc). In a UNIX environment, it is more customary to have the libwhatever.a file have the same name as the libwhatever.so file has so that the -static flag can be passed to the linker to create a statically linked executable. As it is now, users have to know that they have to change the library names that they link against (in addition to adding -static) in order to get a fully static executable. I might suggest that in a UNIX environment, if --enable-static is given, static libraries with names that match the shared libraries be created, perhaps as symbolic links (libicuuc.a -> libsicuuc.a) so that -lsicuuc will always give the static library, and -licuuc will give the static library if -static is passed to the linker and the shared library otherwise. It appears the U_STATIC_IMPLEMENTATION symbol mentioned in the configure --help output is actually required only on Windows to deal with DLL issues.

This suggestion originates from a debian bug report, http://bugs.debian.org/469454, which also references this ticket. As debian maintainer for the ICU packages, I have assured the user that I will not deviate from upstream on this issue since doing so would enable debian ICU users to inadvertently create software that builds properly on debian but not on other UNIX distributions.

Attachments

Ticket 6632.ods (3.8 kB) - added by jvu on 09/10/09 10:10:57.
Google Doc for Ticket 6632 Exported

Change History

06/13/08 14:15:51 changed by srl

  • xref changed.
  • priority changed from major to assess.
  • milestone changed from UNSCH to 4.0.
  • owner changed from somebody to srl.
  • weeks changed.
  • revw changed.

06/25/08 14:08:40 changed by srl

  • milestone changed from 4.0 to 4.2.

07/21/08 09:32:47 changed by hchapman

  • priority changed from assess to minor.
  • milestone changed from 4.2 to 4.4.

05/11/09 10:37:16 changed by hchapman

  • owner changed from srl to krajwade.

06/02/09 09:55:19 changed by srl

  • weeks set to 1.

include time to gather feedback from the list

06/11/09 14:27:05 changed by srl

  • owner changed from krajwade to jvu.

08/27/09 09:35:21 changed by jvu

  • status changed from new to assigned.
  • revw set to srl.

Changed the mh files to remove the "s" for certain platforms.

09/10/09 10:10:57 changed by jvu

  • attachment Ticket 6632.ods added.

Google Doc for Ticket 6632 Exported

09/10/09 17:55:35 changed by srl

  • status changed from assigned to closed.
  • resolution set to fixed.

09/28/09 02:37:14 changed by anonymous

10/01/09 18:50:19 changed by anonymous

Changed the mh files to remove the "s" for certain platforms coupon codes|discount codes|best buy coupon codes

10/15/09 21:56:10 changed by anonymous

11/13/09 17:49:11 changed by anonymous

That's a great suggestion. If there's anyone want to suggest any name, I'd like to know. Thanks. <a href='http://www.yootravel.co.uk/'> travel Voucher codes </a>

11/23/09 17:07:14 changed by anonymous

nice share, great article, very usefull for us...thank you Link:mengembalikan jati diri bangsa | Link:Mbah Gendeng

11/25/09 21:27:44 changed by venn99

Thanks for the info. Learn how to Make Money Online

cash gifting

01/14/10 22:00:14 changed by MacFamous

Great post, what you said Indonesia Java International Destination is really helpful to me. I agree with you anymore. I have been talking mma pound for pound with my friend about, he though it is really interesting as well. Keep up Mbah Gendeng with your good work, I would come back to you.

01/14/10 22:01:31 changed by aLeusia

I was looking Astaga.com Lifestyle on The Net the some useful information that was referred to in the above article Kompetisi Website Kompas MuDA – KFC in other websites, but this article was the most helpful so far. Thank you.

01/14/10 22:03:40 changed by anonymous

My friend genuinely enjoyed your article. It seems like you have placed a lot of Peluang Usaha Ahasu Gnaulep into your post and this world need a lot more of these on the web these days. I do not have a bunch to to say Festival Museum Nusantara in reply, I only this minute wanted to comment to reply well done.

01/26/10 22:16:28 changed by romanzick

If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. brgds Indonesia Java International Destination| Indonesia Java International Destination| Indonesia Java International Destination| international wedding destination

02/13/10 08:42:23 changed by anonymous

Thank you very much for the information provided! I was looking for this data for a long time, bit I was not able to find the trusted source. Indonesia Java International Destination Ngalor NgidulStockist K-Link

03/04/10 16:55:48 changed by anonymous

03/16/10 12:16:05 changed by anonymous

Great post, what you said Indonesia Java International Destination is really helpful to me. I agree with you anymore. I have been talking with my friend about, he though Festival Museum Nusantara it is really interesting as well. I was just browsing for relevant nowGoogle.com Adalah Multiple Search Engine Popular blog posts for my project research and I happened to stumble upon yours.


Add/Change #6332 (user suggests more common naming convention for static libraries on UNIX)




Anti spam check: