summaryrefslogtreecommitdiff
path: root/libicuuc/libicu/buildfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-02-15 03:27:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-02-15 03:27:02 +0300
commit29827fde524a42fe343b32ea3c2f543e9ed3ee55 (patch)
treee0c47c289a4f9f16793d7338d27bba92dc3f4118 /libicuuc/libicu/buildfile
parent10887109a7f8ebd1b0ac1fb18dc59c94d1d1307b (diff)
Release version 65.1.0+1v65.1.0+1
Drop copyright notice from source code Convert libicuuc test from C to C++ so it can link library statically Drop linking -lpthread and -lm for MinGW GCC
Diffstat (limited to 'libicuuc/libicu/buildfile')
-rw-r--r--libicuuc/libicu/buildfile13
1 files changed, 8 insertions, 5 deletions
diff --git a/libicuuc/libicu/buildfile b/libicuuc/libicu/buildfile
index 6131811..b54b35b 100644
--- a/libicuuc/libicu/buildfile
+++ b/libicuuc/libicu/buildfile
@@ -1,5 +1,4 @@
# file : libicu/buildfile
-# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd
# license : Unicode License; see accompanying LICENSE file
./: lib{icuuc} lib{icudata}
@@ -45,8 +44,8 @@ switch $tclass, $tsys
# uc/uposixdefs.h for details). This results with compilation errors for
# some source files when build on MacOS with gcc (as of 9.2; GCC issues
# 93151 and 93469 are reported). We workaround the issue disabling this
- # POSIX compliance request for the faulty source files (luckily they don't
- # require such a compliance).
+ # POSIX compliance request for the faulty source files (luckily the
+ # request is redundant for them).
#
if ($cxx.id == 'gcc')
uc/obj{putil umapfile}: cxx.poptions += -D_XOPEN_SOURCE=400
@@ -130,8 +129,12 @@ switch $tclass, $tsys
}
case 'windows', 'mingw32'
{
- cc.loptions += -Wl,-Bsymbolic -Wl,--enable-auto-import
- cxx.libs += -lpthread -lm
+ # Note that upstream also passes -mthreads (thread-safe exception
+ # handling) that we omit as ICU never throws exceptions (see ICU FAQs for
+ # details). We also omit -lpthread -lm that seems to be redundant.
+ #
+ cc.loptions += -Wl,-Bsymbolic -Wl,--enable-auto-import \
+ -Wl,--no-undefined # Make sure all symbols are resolvable.
}
case 'windows'
{