Skip to content

Commit

Permalink
Update icu4c.mk for proper building
Browse files Browse the repository at this point in the history
- On linux & mingw
  • Loading branch information
who-biz committed Jul 10, 2019
1 parent e536593 commit 5d8bf22
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions contrib/depends/packages/icu4c.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,17 @@ define $(package)_set_vars
$(package)_build_opts=CFLAGS="$($(package)_cflags) $($(package)_cppflags) -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DU_COMBINED_IMPLEMENTATION -fPIC -DENABLE_STATIC=YES -DPGKDATA_MODE=static"
endef

ifeq($(host_os),linux)
define $(package)_config_cmds
mkdir build &&\
cd build &&\
mkdir builda &&\
mkdir buildb &&\
cd builda &&\
sh ../source/runConfigureICU Linux &&\
make &&\
cd ../buildb &&\
sh ../source/runConfigureICU MinGW --enable-static=yes --disable-shared --disable-layout --disable-layoutex --disable-tests --disable-samples --prefix=$(host_prefix) --with-cross-build=`pwd`/../builda &&\
$(MAKE) $($(package)_build_opts)
endef
endif

ifeq($(host_os),mingw32)
define $(package)_config_cmds
mkdir build &&\
cd ../build &&\
sh ../source/runConfigureICU MinGW --enable-static=yes --disable-shared --disable-layout --disable-layoutex --disable-tests --disable-samples --prefix=$(host_prefix) /../build &&\
make &&\
$(MAKE) $($(package)_build_opts)
endef
endif

#define $(package)_build_cmds
# cd source &&\
Expand Down

0 comments on commit 5d8bf22

Please sign in to comment.