Modify

Ticket #3425 (closed Bugs: fixed)

Opened 5 years ago

Last modified 4 years ago

ICU_LINK doesn't work

Reported by: andysem Owned by: johnmaddock
Milestone: Boost 1.41.0 Component: regex
Version: Boost 1.40.0 Severity: Problem
Keywords: icu Cc:

Description

I'm trying to compile Boost.Regex with ICU 3.4 and MSVC 7.1. The ICU library in my case has a nonstandard directory layout like this:

  icu
   |
   |->include
   |   |
   |   |->layout
   |   |->unicode
   |
   |->win32
       |
       |->lib

So the library binaries are in icu/win32/lib instead of the standard icu/lib. I tried to use ICU_LINK environment variable, like bjam suggests (note, I use Cygwin to build the library):

export HAVE_ICU=1
export ICU_PATH="$PATH_TO_ICU/icu"
export ICU_LINK="/LIBPATH:$PATH_TO_ICU/icu/win32/lib icuuc.lib icuin.lib icudt.lib"

However, it seems this variable has no effect, the parameters in ICU_LINK are not seen in the linker command line.

What I eventually came up with was to explicitly specify $ICU_LINK in linkflags for bjam when building Boost.Regex.

Attachments

Jamfile.v2.patch Download (330 bytes) - added by andysem 5 years ago.
The patch fixes the Jamfile so that it passes ICU_LINK flags to the linker

Change History

Changed 5 years ago by andysem

The patch fixes the Jamfile so that it passes ICU_LINK flags to the linker

comment:1 Changed 4 years ago by johnmaddock

  • Status changed from new to closed
  • Resolution set to fixed

(In [57252]) Fixes #3425.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.